pub enum DumpableValue<'a, D>where
D: Dumpable,{
}
Variants§
Integer(&'a BigInt)
Float(f64)
Complex(Complex<f64>)
Boolean(bool)
Str(&'a str)
Bytes(&'a [u8])
Code(&'a CodeObject<<D as Dumpable>::Constant>)
Tuple(&'a [D])
None
Ellipsis
StopIter
List(&'a [D])
Set(&'a [D])
Frozenset(&'a [D])
Dict(&'a [(D, D)])
Trait Implementations§
Source§impl<'a, C> From<BorrowedConstant<'a, C>> for DumpableValue<'a, C>where
C: Constant,
impl<'a, C> From<BorrowedConstant<'a, C>> for DumpableValue<'a, C>where
C: Constant,
Source§fn from(c: BorrowedConstant<'a, C>) -> DumpableValue<'a, C>
fn from(c: BorrowedConstant<'a, C>) -> DumpableValue<'a, C>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, D> Freeze for DumpableValue<'a, D>
impl<'a, D> RefUnwindSafe for DumpableValue<'a, D>where
<<D as Dumpable>::Constant as Constant>::Name: RefUnwindSafe,
D: RefUnwindSafe,
<D as Dumpable>::Constant: RefUnwindSafe,
impl<'a, D> Send for DumpableValue<'a, D>
impl<'a, D> Sync for DumpableValue<'a, D>
impl<'a, D> Unpin for DumpableValue<'a, D>
impl<'a, D> UnwindSafe for DumpableValue<'a, D>where
<<D as Dumpable>::Constant as Constant>::Name: RefUnwindSafe,
D: RefUnwindSafe,
<D as Dumpable>::Constant: RefUnwindSafe,
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