pub enum Rany<'a> {
Show 25 variants
Null(&'a Robj),
Symbol(&'a Symbol),
Pairlist(&'a Pairlist),
Function(&'a Function),
Environment(&'a Environment),
Promise(&'a Promise),
Language(&'a Language),
Special(&'a Primitive),
Builtin(&'a Primitive),
Rstr(&'a Rstr),
Logicals(&'a Logicals),
Integers(&'a Integers),
Doubles(&'a Doubles),
Complexes(&'a Complexes),
Strings(&'a Strings),
Dot(&'a Robj),
Any(&'a Robj),
List(&'a List),
Expressions(&'a Expressions),
Bytecode(&'a Robj),
ExternalPtr(&'a Robj),
WeakRef(&'a Robj),
Raw(&'a Raw),
S4(&'a S4),
Unknown(&'a Robj),
}
Expand description
Enum use to unpack R objects into their specialist wrappers.
Variants§
Null(&'a Robj)
Symbol(&'a Symbol)
Pairlist(&'a Pairlist)
Function(&'a Function)
Environment(&'a Environment)
Promise(&'a Promise)
Language(&'a Language)
Special(&'a Primitive)
Builtin(&'a Primitive)
Rstr(&'a Rstr)
Logicals(&'a Logicals)
Integers(&'a Integers)
Doubles(&'a Doubles)
Complexes(&'a Complexes)
Strings(&'a Strings)
Dot(&'a Robj)
Any(&'a Robj)
List(&'a List)
Expressions(&'a Expressions)
Bytecode(&'a Robj)
ExternalPtr(&'a Robj)
WeakRef(&'a Robj)
Raw(&'a Raw)
S4(&'a S4)
Unknown(&'a Robj)
Trait Implementations§
impl<'a> StructuralPartialEq for Rany<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rany<'a>
impl<'a> RefUnwindSafe for Rany<'a>
impl<'a> !Send for Rany<'a>
impl<'a> !Sync for Rany<'a>
impl<'a> Unpin for Rany<'a>
impl<'a> UnwindSafe for Rany<'a>
Blanket Implementations§
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> 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