#[non_exhaustive]pub enum Resolved<'a> {
Null,
Bool(bool),
Int(i128),
Uint(u128),
Float(f64),
Str(Cow<'a, str>),
}Available on crate features
json or toml or yaml only.Expand description
A scalar read for the type a field needs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
A null.
Bool(bool)
A boolean.
Int(i128)
An integer that fits i128.
Uint(u128)
An integer above i128::MAX.
Float(f64)
A floating-point number.
Str(Cow<'a, str>)
A string, borrowed from the scalar, or owned when the format decodes
it, as YAML decodes a !!binary scalar.
Trait Implementations§
impl<'a> StructuralPartialEq for Resolved<'a>
Auto Trait Implementations§
impl<'a> Forget for Resolved<'a>
impl<'a> Freeze for Resolved<'a>
impl<'a> Move for Resolved<'a>
impl<'a> RefUnwindSafe for Resolved<'a>
impl<'a> Send for Resolved<'a>
impl<'a> Sync for Resolved<'a>
impl<'a> Unpin for Resolved<'a>
impl<'a> UnsafeUnpin for Resolved<'a>
impl<'a> UnwindSafe for Resolved<'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