Struct xml2json_rs::Indentation
source · [−]pub struct Indentation { /* private fields */ }
Expand description
XML Indentation rendering options
Implementations
sourceimpl Indentation
impl Indentation
Optional indentation rendering
sourcepub fn new(indent_char: u8, indent_size: usize) -> Indentation
pub fn new(indent_char: u8, indent_size: usize) -> Indentation
Initialize Indentation instance.
This can be passed as a XmlConfig.rendering
option to output XML with line-breaks and
indentations.
Trait Implementations
sourceimpl Clone for Indentation
impl Clone for Indentation
sourcefn clone(&self) -> Indentation
fn clone(&self) -> Indentation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Indentation
impl Debug for Indentation
sourceimpl Default for Indentation
impl Default for Indentation
sourcefn default() -> Indentation
fn default() -> Indentation
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Indentation
impl Send for Indentation
impl Sync for Indentation
impl Unpin for Indentation
impl UnwindSafe for Indentation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more