pub enum Vector {
Double(Rep<Double>),
Integer(Rep<Integer>),
Logical(Rep<Logical>),
Character(Rep<Character>),
}
Variants§
Implementations§
source§impl Vector
impl Vector
See Rep
for the documentation on the methods.
pub fn get(&self, index: usize) -> Option<Vector>
pub fn set_subset(&mut self, subset: Subset, value: Obj) -> Result<Self, Signal>
pub fn iter_names(&self) -> Option<IterableValues<Character>>
pub fn is_named(&self) -> bool
pub fn names(&self) -> Option<CowObj<Vec<Character>>>
pub fn set_names(&self, names: CowObj<Vec<Character>>) -> Self
pub fn try_get(&self, index: Obj) -> EvalResult
pub fn subset(&self, subset: Subset) -> Self
pub fn assign(&mut self, other: Obj) -> EvalResult
pub fn materialize(self) -> Self
pub fn vec_coerce<T, U>(v: &[OptionNA<T>]) -> Vec<OptionNA<U>>where
T: CoercibleInto<U> + Clone,
pub fn vec_parse<U>(v: &[OptionNA<String>]) -> (bool, Vec<OptionNA<U>>)where
U: FromStr,
pub fn as_integer(self) -> Vector
pub fn as_double(self) -> Vector
pub fn as_logical(self) -> Vector
pub fn as_character(self) -> Vector
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl VecPartialCmp<Vector> for Vector
impl VecPartialCmp<Vector> for Vector
type Output = Result<Vector, Signal>
fn vec_gt(self, rhs: Self) -> Self::Output
fn vec_gte(self, rhs: Self) -> Self::Output
fn vec_lt(self, rhs: Self) -> Self::Output
fn vec_lte(self, rhs: Self) -> Self::Output
fn vec_eq(self, rhs: Self) -> Self::Output
fn vec_neq(self, rhs: Self) -> Self::Output
impl StructuralPartialEq for Vector
Auto Trait Implementations§
impl Freeze for Vector
impl !RefUnwindSafe for Vector
impl !Send for Vector
impl !Sync for Vector
impl Unpin for Vector
impl !UnwindSafe for Vector
Blanket Implementations§
source§impl<T> AsDynCompare for Twhere
T: Any + DynCompare,
impl<T> AsDynCompare for Twhere
T: Any + DynCompare,
fn as_any(&self) -> &(dyn Any + 'static)
fn as_dyn_compare(&self) -> &(dyn DynCompare + 'static)
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> DynCompare for T
impl<T> DynCompare for T
fn dyn_eq(&self, other: &(dyn DynCompare + 'static)) -> bool
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type