Struct slr_parser::Printer [−][src]
A utility type for printing a configuration element.
Implementations
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]
&mut self,
name: Option<&str>,
one_line: bool
) -> Result<(), Error>
pub fn start_tagged_array(
&mut self,
name: Option<&str>,
tag: &str,
one_line: bool
) -> Result<(), Error>
[src]
&mut self,
name: Option<&str>,
tag: &str,
one_line: bool
) -> Result<(), Error>
pub fn start_tagged_table(
&mut self,
name: Option<&str>,
tag: &str,
is_root: bool,
one_line: bool
) -> Result<(), Error>
[src]
&mut self,
name: Option<&str>,
tag: &str,
is_root: bool,
one_line: bool
) -> Result<(), Error>
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]
&mut self,
name: Option<&str>,
is_root: bool,
one_line: bool
) -> Result<(), Error>
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,
W: RefUnwindSafe,
impl<'l, W> Send for Printer<'l, W> where
W: Send,
W: Send,
impl<'l, W> Sync for Printer<'l, W> where
W: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,