#[repr(u32)]#[non_exhaustive]pub enum yaml_token_type_t {
Show 22 variants
    YAML_NO_TOKEN,
    YAML_STREAM_START_TOKEN,
    YAML_STREAM_END_TOKEN,
    YAML_VERSION_DIRECTIVE_TOKEN,
    YAML_TAG_DIRECTIVE_TOKEN,
    YAML_DOCUMENT_START_TOKEN,
    YAML_DOCUMENT_END_TOKEN,
    YAML_BLOCK_SEQUENCE_START_TOKEN,
    YAML_BLOCK_MAPPING_START_TOKEN,
    YAML_BLOCK_END_TOKEN,
    YAML_FLOW_SEQUENCE_START_TOKEN,
    YAML_FLOW_SEQUENCE_END_TOKEN,
    YAML_FLOW_MAPPING_START_TOKEN,
    YAML_FLOW_MAPPING_END_TOKEN,
    YAML_BLOCK_ENTRY_TOKEN,
    YAML_FLOW_ENTRY_TOKEN,
    YAML_KEY_TOKEN,
    YAML_VALUE_TOKEN,
    YAML_ALIAS_TOKEN,
    YAML_ANCHOR_TOKEN,
    YAML_TAG_TOKEN,
    YAML_SCALAR_TOKEN,
}Expand description
Token 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.
YAML_NO_TOKEN
An empty token.
YAML_STREAM_START_TOKEN
A STREAM-START token.
YAML_STREAM_END_TOKEN
A STREAM-END token.
YAML_VERSION_DIRECTIVE_TOKEN
A VERSION-DIRECTIVE token.
YAML_TAG_DIRECTIVE_TOKEN
A TAG-DIRECTIVE token.
YAML_DOCUMENT_START_TOKEN
A DOCUMENT-START token.
YAML_DOCUMENT_END_TOKEN
A DOCUMENT-END token.
YAML_BLOCK_SEQUENCE_START_TOKEN
A BLOCK-SEQUENCE-START token.
YAML_BLOCK_MAPPING_START_TOKEN
A BLOCK-MAPPING-START token.
YAML_BLOCK_END_TOKEN
A BLOCK-END token.
YAML_FLOW_SEQUENCE_START_TOKEN
A FLOW-SEQUENCE-START token.
YAML_FLOW_SEQUENCE_END_TOKEN
A FLOW-SEQUENCE-END token.
YAML_FLOW_MAPPING_START_TOKEN
A FLOW-MAPPING-START token.
YAML_FLOW_MAPPING_END_TOKEN
A FLOW-MAPPING-END token.
YAML_BLOCK_ENTRY_TOKEN
A BLOCK-ENTRY token.
YAML_FLOW_ENTRY_TOKEN
A FLOW-ENTRY token.
YAML_KEY_TOKEN
A KEY token.
YAML_VALUE_TOKEN
A VALUE token.
YAML_ALIAS_TOKEN
An ALIAS token.
YAML_ANCHOR_TOKEN
An ANCHOR token.
YAML_TAG_TOKEN
A TAG token.
YAML_SCALAR_TOKEN
A SCALAR token.
Trait Implementations§
source§impl Clone for yaml_token_type_t
 
impl Clone for yaml_token_type_t
source§fn clone(&self) -> yaml_token_type_t
 
fn clone(&self) -> yaml_token_type_t
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 yaml_token_type_t
 
impl Debug for yaml_token_type_t
source§impl Hash for yaml_token_type_t
 
impl Hash for yaml_token_type_t
source§impl Ord for yaml_token_type_t
 
impl Ord for yaml_token_type_t
source§fn cmp(&self, other: &yaml_token_type_t) -> Ordering
 
fn cmp(&self, other: &yaml_token_type_t) -> 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<yaml_token_type_t> for yaml_token_type_t
 
impl PartialEq<yaml_token_type_t> for yaml_token_type_t
source§fn eq(&self, other: &yaml_token_type_t) -> bool
 
fn eq(&self, other: &yaml_token_type_t) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<yaml_token_type_t> for yaml_token_type_t
 
impl PartialOrd<yaml_token_type_t> for yaml_token_type_t
source§fn partial_cmp(&self, other: &yaml_token_type_t) -> Option<Ordering>
 
fn partial_cmp(&self, other: &yaml_token_type_t) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for yaml_token_type_t
impl Eq for yaml_token_type_t
impl StructuralEq for yaml_token_type_t
impl StructuralPartialEq for yaml_token_type_t
Auto Trait Implementations§
impl RefUnwindSafe for yaml_token_type_t
impl Send for yaml_token_type_t
impl Sync for yaml_token_type_t
impl Unpin for yaml_token_type_t
impl UnwindSafe for yaml_token_type_t
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