Enum serde_value::Unexpected
source · [−]pub enum Unexpected {
}
Variants
Bool(bool)
Unsigned(u64)
Signed(i64)
Float(f64)
Char(char)
Str(String)
Bytes(Vec<u8>)
Unit
Option
NewtypeStruct
Seq
Map
Enum
UnitVariant
NewtypeVariant
TupleVariant
StructVariant
Other(String)
Implementations
sourceimpl Unexpected
impl Unexpected
pub fn to_unexpected<'a>(&'a self) -> Unexpected<'a>
Trait Implementations
sourceimpl Debug for Unexpected
impl Debug for Unexpected
sourceimpl<'a> From<Unexpected<'a>> for Unexpected
impl<'a> From<Unexpected<'a>> for Unexpected
sourcefn from(unexp: Unexpected<'_>) -> Unexpected
fn from(unexp: Unexpected<'_>) -> Unexpected
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Unexpected
impl Send for Unexpected
impl Sync for Unexpected
impl Unpin for Unexpected
impl UnwindSafe for Unexpected
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more