pub enum Any<'a> {
}Expand description
Type returned by Source::expand_any.
Represents any primitive type that can be parsed by a Source.
Variants§
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(f32)
F64(f64)
Str(Cow<'a, str>)
Bytes(Cow<'a, [u8]>)
Implementations§
Source§impl<'a> Any<'a>
impl<'a> Any<'a>
Sourcepub fn unexpected(&self) -> Unexpected<'_>
pub fn unexpected(&self) -> Unexpected<'_>
Turns this Self into a de::Unexpected for error handling.
Auto Trait Implementations§
impl<'a> Freeze for Any<'a>
impl<'a> RefUnwindSafe for Any<'a>
impl<'a> Send for Any<'a>
impl<'a> Sync for Any<'a>
impl<'a> Unpin for Any<'a>
impl<'a> UnwindSafe for Any<'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