Struct glassbench::Printer[][src]

pub struct Printer {
    pub skin: MadSkin,
    pub terminal_width: usize,
}

A small helper to print using markdown templates

Fields

skin: MadSkinterminal_width: usize

Implementations

impl Printer[src]

pub fn new() -> Self[src]

create a new printer

The skin will be without style and color if the output is piped.

pub fn print(&self, expander: OwningTemplateExpander<'_>, template: &str)[src]

Auto Trait Implementations

impl RefUnwindSafe for Printer

impl Send for Printer

impl Sync for Printer

impl Unpin for Printer

impl UnwindSafe for Printer

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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,