#[non_exhaustive]#[repr(u32)]pub enum yaml_token_type_t {
Show 22 variants
YAML_NO_TOKEN = 0,
YAML_STREAM_START_TOKEN = 1,
YAML_STREAM_END_TOKEN = 2,
YAML_VERSION_DIRECTIVE_TOKEN = 3,
YAML_TAG_DIRECTIVE_TOKEN = 4,
YAML_DOCUMENT_START_TOKEN = 5,
YAML_DOCUMENT_END_TOKEN = 6,
YAML_BLOCK_SEQUENCE_START_TOKEN = 7,
YAML_BLOCK_MAPPING_START_TOKEN = 8,
YAML_BLOCK_END_TOKEN = 9,
YAML_FLOW_SEQUENCE_START_TOKEN = 10,
YAML_FLOW_SEQUENCE_END_TOKEN = 11,
YAML_FLOW_MAPPING_START_TOKEN = 12,
YAML_FLOW_MAPPING_END_TOKEN = 13,
YAML_BLOCK_ENTRY_TOKEN = 14,
YAML_FLOW_ENTRY_TOKEN = 15,
YAML_KEY_TOKEN = 16,
YAML_VALUE_TOKEN = 17,
YAML_ALIAS_TOKEN = 18,
YAML_ANCHOR_TOKEN = 19,
YAML_TAG_TOKEN = 20,
YAML_SCALAR_TOKEN = 21,
}
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 = 0
An empty token.
YAML_STREAM_START_TOKEN = 1
A STREAM-START token.
YAML_STREAM_END_TOKEN = 2
A STREAM-END token.
YAML_VERSION_DIRECTIVE_TOKEN = 3
A VERSION-DIRECTIVE token.
YAML_TAG_DIRECTIVE_TOKEN = 4
A TAG-DIRECTIVE token.
YAML_DOCUMENT_START_TOKEN = 5
A DOCUMENT-START token.
YAML_DOCUMENT_END_TOKEN = 6
A DOCUMENT-END token.
YAML_BLOCK_SEQUENCE_START_TOKEN = 7
A BLOCK-SEQUENCE-START token.
YAML_BLOCK_MAPPING_START_TOKEN = 8
A BLOCK-MAPPING-START token.
YAML_BLOCK_END_TOKEN = 9
A BLOCK-END token.
YAML_FLOW_SEQUENCE_START_TOKEN = 10
A FLOW-SEQUENCE-START token.
YAML_FLOW_SEQUENCE_END_TOKEN = 11
A FLOW-SEQUENCE-END token.
YAML_FLOW_MAPPING_START_TOKEN = 12
A FLOW-MAPPING-START token.
YAML_FLOW_MAPPING_END_TOKEN = 13
A FLOW-MAPPING-END token.
YAML_BLOCK_ENTRY_TOKEN = 14
A BLOCK-ENTRY token.
YAML_FLOW_ENTRY_TOKEN = 15
A FLOW-ENTRY token.
YAML_KEY_TOKEN = 16
A KEY token.
YAML_VALUE_TOKEN = 17
A VALUE token.
YAML_ALIAS_TOKEN = 18
An ALIAS token.
YAML_ANCHOR_TOKEN = 19
An ANCHOR token.
YAML_TAG_TOKEN = 20
A TAG token.
YAML_SCALAR_TOKEN = 21
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 for yaml_token_type_t
impl PartialEq for yaml_token_type_t
Source§impl PartialOrd for yaml_token_type_t
impl PartialOrd for yaml_token_type_t
impl Copy for yaml_token_type_t
impl Eq for yaml_token_type_t
impl StructuralPartialEq for yaml_token_type_t
Auto Trait Implementations§
impl Freeze for yaml_token_type_t
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