[][src]Struct clang::PrettyPrinter

pub struct PrettyPrinter<'e> { /* fields omitted */ }

Pretty prints declarations.

Implementations

impl<'e> PrettyPrinter<'e>[src]

pub fn get_flag(&self, flag: PrintingPolicyFlag) -> bool[src]

Gets the specified flag value.

pub fn set_flag(&self, flag: PrintingPolicyFlag, value: bool) -> &Self[src]

Sets the specified flag value.

pub fn get_indentation_amount(&self) -> u8[src]

Gets the number of spaces used to indent each line.

pub fn set_indentation_amount(&self, value: u8) -> &Self[src]

Sets the number of spaces used to indent each line.

pub fn print(&self) -> String[src]

Pretty print the declaration.

Trait Implementations

impl<'e> Debug for PrettyPrinter<'e>[src]

impl<'e> Drop for PrettyPrinter<'e>[src]

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

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.