#[repr(i32)]pub enum AsdfYamlEventType {
None = 0,
StreamStart = 1,
StreamEnd = 2,
DocumentStart = 3,
DocumentEnd = 4,
MappingStart = 5,
MappingEnd = 6,
SequenceStart = 7,
SequenceEnd = 8,
Scalar = 9,
Alias = 10,
}Expand description
The YAML sub-event types, mirroring asdf_yaml_event_type_t.
Variants§
None = 0
StreamStart = 1
StreamEnd = 2
DocumentStart = 3
DocumentEnd = 4
MappingStart = 5
MappingEnd = 6
SequenceStart = 7
SequenceEnd = 8
Scalar = 9
Alias = 10
Implementations§
Source§impl AsdfYamlEventType
impl AsdfYamlEventType
Sourcepub fn text(self) -> &'static CStr
pub fn text(self) -> &'static CStr
The text asdf_yaml_event_type_text reports.
Upstream forwards this to libfyaml’s fy_event_type_get_text, which
gives the YAML test suite’s event notation rather than the enum’s own
spelling: +MAP, =VAL, -SEQ. Nothing in a header states these, so
they are taken from upstream’s committed events fixtures.
Trait Implementations§
Source§impl Clone for AsdfYamlEventType
impl Clone for AsdfYamlEventType
Source§fn clone(&self) -> AsdfYamlEventType
fn clone(&self) -> AsdfYamlEventType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AsdfYamlEventType
Source§impl Debug for AsdfYamlEventType
impl Debug for AsdfYamlEventType
impl Eq for AsdfYamlEventType
Source§impl PartialEq for AsdfYamlEventType
impl PartialEq for AsdfYamlEventType
impl StructuralPartialEq for AsdfYamlEventType
Auto Trait Implementations§
impl Freeze for AsdfYamlEventType
impl RefUnwindSafe for AsdfYamlEventType
impl Send for AsdfYamlEventType
impl Sync for AsdfYamlEventType
impl Unpin for AsdfYamlEventType
impl UnsafeUnpin for AsdfYamlEventType
impl UnwindSafe for AsdfYamlEventType
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