[][src]Struct slr_parser::Printer

pub struct Printer<'l, W: 'l> { /* fields omitted */ }

A utility type for printing a configuration element.

Methods

impl<'l, W: Write> Printer<'l, W>[src]

pub fn new(writer: &'l mut W) -> Printer<'l, W>[src]

pub fn value(&mut self, name: Option<&str>, value: &str) -> Result<(), Error>[src]

pub fn start_array(
    &mut self,
    name: Option<&str>,
    one_line: bool
) -> Result<(), Error>
[src]

pub fn start_tagged_array(
    &mut self,
    name: Option<&str>,
    tag: &str,
    one_line: bool
) -> Result<(), Error>
[src]

pub fn start_tagged_table(
    &mut self,
    name: Option<&str>,
    tag: &str,
    is_root: bool,
    one_line: bool
) -> Result<(), Error>
[src]

pub fn end_array(&mut self) -> Result<(), Error>[src]

pub fn start_table(
    &mut self,
    name: Option<&str>,
    is_root: bool,
    one_line: bool
) -> Result<(), Error>
[src]

pub fn end_table(&mut self, is_root: bool) -> Result<(), Error>[src]

Auto Trait Implementations

impl<'l, W> RefUnwindSafe for Printer<'l, W> where
    W: RefUnwindSafe

impl<'l, W> Send for Printer<'l, W> where
    W: Send

impl<'l, W> Sync for Printer<'l, W> where
    W: Sync

impl<'l, W> Unpin for Printer<'l, W>

impl<'l, W> !UnwindSafe for Printer<'l, W>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.