Enum libyml::yaml::YamlNodeTypeT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlNodeTypeT {
YamlNoNode = 0,
YamlScalarNode = 1,
YamlSequenceNode = 2,
YamlMappingNode = 3,
}
Expand description
Node types.
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.
YamlNoNode = 0
An empty node.
YamlScalarNode = 1
A scalar node.
YamlSequenceNode = 2
A sequence node.
YamlMappingNode = 3
A mapping node.
Trait Implementations§
source§impl Clone for YamlNodeTypeT
impl Clone for YamlNodeTypeT
source§fn clone(&self) -> YamlNodeTypeT
fn clone(&self) -> YamlNodeTypeT
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for YamlNodeTypeT
impl Debug for YamlNodeTypeT
source§impl Default for YamlNodeTypeT
impl Default for YamlNodeTypeT
source§impl Hash for YamlNodeTypeT
impl Hash for YamlNodeTypeT
source§impl Ord for YamlNodeTypeT
impl Ord for YamlNodeTypeT
source§fn cmp(&self, other: &YamlNodeTypeT) -> Ordering
fn cmp(&self, other: &YamlNodeTypeT) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for YamlNodeTypeT
impl PartialEq for YamlNodeTypeT
source§impl PartialOrd for YamlNodeTypeT
impl PartialOrd for YamlNodeTypeT
impl Copy for YamlNodeTypeT
impl Eq for YamlNodeTypeT
impl StructuralPartialEq for YamlNodeTypeT
Auto Trait Implementations§
impl Freeze for YamlNodeTypeT
impl RefUnwindSafe for YamlNodeTypeT
impl Send for YamlNodeTypeT
impl Sync for YamlNodeTypeT
impl Unpin for YamlNodeTypeT
impl UnwindSafe for YamlNodeTypeT
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)