[][src]Struct libyaml::EmitterBuilder

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

Builder for emitters.

Methods

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

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

Start building an emitter.

pub fn finish(self) -> Box<Emitter<'a>>[src]

Finish building an emitter.

pub fn canonical(self, enable: bool) -> Self[src]

Enable or disable canonical output.

pub fn encoding(self, encoding: Encoding) -> Self[src]

Set encoding.

pub fn indent(self, indent: usize) -> Self[src]

Set indentation increment.

pub fn line_break(self, line_break: LineBreak) -> Self[src]

Set line break encoding.

pub fn line_width(self, width: usize) -> Self[src]

Set preferred line width.

pub fn unicode(self, enable: bool) -> Self[src]

Enable or disable unescaped non-ASCII characters in output.

Auto Trait Implementations

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

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

impl<'a> Unpin for EmitterBuilder<'a>

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

impl<'a> !RefUnwindSafe for EmitterBuilder<'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]