pub enum Actual {
}
Expand description
A type that enumerates all of serde’s types, used to indicate that a value of the given type was received.
Variants§
Bool(bool)
Unsigned(u128)
Signed(i128)
Float(f64)
Char(char)
Str(String)
Bytes(Vec<u8>)
Unit
Option
NewtypeStruct
Seq
Map
Enum
UnitVariant
NewtypeVariant
TupleVariant
StructVariant
Other(String)
Trait Implementations§
Source§impl From<Unexpected<'_>> for Actual
impl From<Unexpected<'_>> for Actual
Source§fn from(value: Unexpected<'_>) -> Actual
fn from(value: Unexpected<'_>) -> Actual
Converts to this type from the input type.
impl StructuralPartialEq for Actual
Auto Trait Implementations§
impl Freeze for Actual
impl RefUnwindSafe for Actual
impl Send for Actual
impl Sync for Actual
impl Unpin for Actual
impl UnwindSafe for Actual
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Bool
: 9 bytesUnsigned
: 32 bytesSigned
: 32 bytesFloat
: 16 bytesChar
: 12 bytesStr
: 32 bytesBytes
: 32 bytesUnit
: 0 bytesOption
: 0 bytesNewtypeStruct
: 0 bytesSeq
: 0 bytesMap
: 0 bytesEnum
: 0 bytesUnitVariant
: 0 bytesNewtypeVariant
: 0 bytesTupleVariant
: 0 bytesStructVariant
: 0 bytesOther
: 24 bytes