[][src]Struct libyaml::Emitter

pub struct Emitter<'a> { /* fields omitted */ }

Emitter.

Methods

impl<'a> Emitter<'a>[src]

pub fn new<W: Write + 'a>(writer: W) -> Result<Box<Self>, EmitterError>[src]

Create an emitter with default configuration.

If a custom configuration is needed, use EmitterBuilder to build an Emitter instance.

pub fn emit(&mut self, event: Event) -> Result<(), EmitterError>[src]

Emit an event.

pub fn flush(&mut self) -> Result<(), EmitterError>[src]

Flush the emitter buffer to writer.

pub fn as_raw_ptr(&mut self) -> *mut yaml_emitter_t[src]

Return raw pointer to the underlying yaml_emitter_t.

Trait Implementations

impl<'_> Drop for Emitter<'_>[src]

Auto Trait Implementations

impl<'a> !Send for Emitter<'a>

impl<'a> !Sync for Emitter<'a>

impl<'a> Unpin for Emitter<'a>

impl<'a> !UnwindSafe for Emitter<'a>

impl<'a> !RefUnwindSafe for Emitter<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]