[−][src]Struct libyaml::Emitter
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
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]
U: From<T>,
impl<T> From<T> for 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,