[−][src]Enum libyaml::Event
Emitter or parser event.
Variants
A STREAM-START event.
Fields of StreamStart
A STREAM-END event.
A DOCUMENT-START event.
Fields of DocumentStart
version: Option<VersionDirective>
Optional version directive.
List of tag directives, can be empty.
implicit: bool
If true, no document start marker will be emitted.
A DOCUMENT-END event.
Fields of DocumentEnd
implicit: bool
If true, no document end marker will be emitted.
An ALIAS event.
Fields of Alias
anchor: String
Target anchor name.
A SCALAR event.
Fields of Scalar
anchor: Option<String>
Optional anchor name.
tag: Option<String>
Optional tag name.
value: String
Scalar value.
plain_implicit: bool
If true, no tag will be emitted for the plain style.
quoted_implicit: bool
If true, no tag will be emitted for the non-plain styles.
style: Option<ScalarStyle>
Scalar style; if None
, LibYAML will choose a style.
A SEQUENCE-START event.
Fields of SequenceStart
A SEQUENCE-END event.
A MAPPING-START event.
Fields of MappingStart
A MAPPING-END event.
Methods
impl Event
[src]
pub fn from_raw(raw: yaml_event_t) -> Result<Self, EventError>
[src]
Take ownership of a raw yaml_event_t
. This method frees the allocated
memory, even if the conversion fails.
pub fn into_raw(self) -> Result<yaml_event_t, EventError>
[src]
Return the raw yaml_event_t
for this event. The caller is responsible
for freeing memory.
Trait Implementations
impl Clone for Event
[src]
impl Eq for Event
[src]
impl PartialEq<Event> for Event
[src]
impl Debug for Event
[src]
impl Hash for Event
[src]
Auto Trait Implementations
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
impl RefUnwindSafe for Event
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,