pub struct PrettyPrinter<'e> { /* private fields */ }
Expand description
Pretty prints declarations.
Implementations§
Source§impl<'e> PrettyPrinter<'e>
impl<'e> PrettyPrinter<'e>
Sourcepub fn get_flag(&self, flag: PrintingPolicyFlag) -> bool
pub fn get_flag(&self, flag: PrintingPolicyFlag) -> bool
Gets the specified flag value.
Sourcepub fn set_flag(&self, flag: PrintingPolicyFlag, value: bool) -> &Self
pub fn set_flag(&self, flag: PrintingPolicyFlag, value: bool) -> &Self
Sets the specified flag value.
Sourcepub fn get_indentation_amount(&self) -> u8
pub fn get_indentation_amount(&self) -> u8
Gets the number of spaces used to indent each line.
Sourcepub fn set_indentation_amount(&self, value: u8) -> &Self
pub fn set_indentation_amount(&self, value: u8) -> &Self
Sets the number of spaces used to indent each line.
Trait Implementations§
Source§impl<'e> Debug for PrettyPrinter<'e>
impl<'e> Debug for PrettyPrinter<'e>
Auto Trait Implementations§
impl<'e> Freeze for PrettyPrinter<'e>
impl<'e> RefUnwindSafe for PrettyPrinter<'e>
impl<'e> !Send for PrettyPrinter<'e>
impl<'e> !Sync for PrettyPrinter<'e>
impl<'e> Unpin for PrettyPrinter<'e>
impl<'e> UnwindSafe for PrettyPrinter<'e>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more