[−][src]Struct libyaml::EmitterBuilder
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]
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,