[−][src]Struct prettyprint::PrettyPrint
The main pretty print object.
This gets created through a builder.
Methods
impl PrettyPrint
[src]
pub fn configure(&self) -> PrettyPrinter
[src]
Dynamically configure printer
pub fn file<T: Into<String>>(&self, filename: T) -> Result<(), Error>
[src]
Prints a file.
pub fn string<T: Into<String>>(&self, input: T) -> Result<(), Error>
[src]
Prints a string.
pub fn string_with_header<T: Into<String>>(
&self,
input: T,
header: T
) -> Result<(), Error>
[src]
&self,
input: T,
header: T
) -> Result<(), Error>
Prints a string with a specific header.
pub fn get_themes(&self) -> BTreeMap<String, Theme>
[src]
List all available themes for syntax highlighting
Trait Implementations
impl Debug for PrettyPrint
[src]
impl Default for PrettyPrint
[src]
fn default() -> PrettyPrint
[src]
impl<'_> From<&'_ PrettyPrint> for PrettyPrinter
[src]
fn from(printer: &PrettyPrint) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrettyPrint
impl Send for PrettyPrint
impl Sync for PrettyPrint
impl Unpin for PrettyPrint
impl UnwindSafe for PrettyPrint
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,
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.
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>,