Struct clang::PrettyPrinter
source · [−]pub struct PrettyPrinter<'e> { /* private fields */ }
Expand description
Pretty prints declarations.
Implementations
sourceimpl<'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
sourceimpl<'e> Debug for PrettyPrinter<'e>
impl<'e> Debug for PrettyPrinter<'e>
Auto Trait Implementations
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
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