Enum libyml::yaml::YamlEventTypeT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlEventTypeT {
YamlNoEvent = 0,
YamlStreamStartEvent = 1,
YamlStreamEndEvent = 2,
YamlDocumentStartEvent = 3,
YamlDocumentEndEvent = 4,
YamlAliasEvent = 5,
YamlScalarEvent = 6,
YamlSequenceStartEvent = 7,
YamlSequenceEndEvent = 8,
YamlMappingStartEvent = 9,
YamlMappingEndEvent = 10,
}
Expand description
Event 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.
YamlNoEvent = 0
An empty event.
YamlStreamStartEvent = 1
A stream-start event.
YamlStreamEndEvent = 2
A stream-end event.
YamlDocumentStartEvent = 3
A document-start event.
YamlDocumentEndEvent = 4
A document-end event.
YamlAliasEvent = 5
An alias event.
YamlScalarEvent = 6
A scalar event.
YamlSequenceStartEvent = 7
A sequence-start event.
YamlSequenceEndEvent = 8
A sequence-end event.
YamlMappingStartEvent = 9
A mapping-start event.
YamlMappingEndEvent = 10
A mapping-end event.
Trait Implementations§
source§impl Clone for YamlEventTypeT
impl Clone for YamlEventTypeT
source§fn clone(&self) -> YamlEventTypeT
fn clone(&self) -> YamlEventTypeT
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 YamlEventTypeT
impl Debug for YamlEventTypeT
source§impl Hash for YamlEventTypeT
impl Hash for YamlEventTypeT
source§impl Ord for YamlEventTypeT
impl Ord for YamlEventTypeT
source§fn cmp(&self, other: &YamlEventTypeT) -> Ordering
fn cmp(&self, other: &YamlEventTypeT) -> 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 YamlEventTypeT
impl PartialEq for YamlEventTypeT
source§impl PartialOrd for YamlEventTypeT
impl PartialOrd for YamlEventTypeT
impl Copy for YamlEventTypeT
impl Eq for YamlEventTypeT
impl StructuralPartialEq for YamlEventTypeT
Auto Trait Implementations§
impl Freeze for YamlEventTypeT
impl RefUnwindSafe for YamlEventTypeT
impl Send for YamlEventTypeT
impl Sync for YamlEventTypeT
impl Unpin for YamlEventTypeT
impl UnwindSafe for YamlEventTypeT
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
)