Enum nondestructive::yaml::Any
source · #[non_exhaustive]pub enum Any<'a> {
Scalar(Value<'a>),
Mapping(Mapping<'a>),
Sequence(Sequence<'a>),
}
Expand description
An enum which helps to externally discriminate the interior type of a
Value
.
See Value::into_any
.
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.
Scalar(Value<'a>)
The type is a scalar type.
Mapping(Mapping<'a>)
The type is a Mapping
.
Sequence(Sequence<'a>)
The type is a Sequence
.
Implementations§
Trait Implementations§
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