☰
RColumn
Methods
new_column
nrows
Trait Implementations
TryFrom<Robj>
In extendr_api::wrapper::matrix
?
Type Definition
extendr_api
::
wrapper
::
matrix
::
RColumn
source
·
[
−
]
pub type RColumn<T> =
RArray
<T, [
usize
;
1
]>;
Implementations
§
source
§
impl<'a, T:
ToVectorValue
+ 'a>
RColumn
<T>
where
Robj
:
AsTypedSlice
<'a, T>,
source
pub fn
new_column
<F:
FnMut
(
usize
) -> T>(nrows:
usize
, f: F) -> Self
Make a new column type.
source
pub fn
nrows
(&self) ->
usize
Get the number of rows.
Trait Implementations
§
source
§
impl<'a, T: 'a>
TryFrom
<
Robj
> for
RColumn
<T>
where
Robj
:
AsTypedSlice
<'a, T>,
§
type
Error
=
Error
The type returned in the event of a conversion error.
source
§
fn
try_from
(robj:
Robj
) ->
Result
<Self>
Performs the conversion.