Trait PrettyPrint

Source
pub trait PrettyPrint {
    // Required method
    fn meta(&self) -> Meta<'_>;

    // Provided method
    fn pretty(
        &self,
        colored: bool,
        prefix: Option<String>,
        profile: Option<&str>,
    ) -> Result<String> { ... }
}

Required Methods§

Source

fn meta(&self) -> Meta<'_>

Provided Methods§

Source

fn pretty( &self, colored: bool, prefix: Option<String>, profile: Option<&str>, ) -> Result<String>

Implementations on Foreign Types§

Source§

impl PrettyPrint for Value

Source§

fn meta(&self) -> Meta<'_>

Source§

fn pretty( &self, colored: bool, prefix: Option<String>, _profile: Option<&str>, ) -> Result<String>

Source§

impl<K: Display + PadStr, V: Display> PrettyPrint for HashMap<K, V>

Source§

fn meta(&self) -> Meta<'_>

Source§

fn pretty( &self, colored: bool, prefix: Option<String>, _profile: Option<&str>, ) -> Result<String>

Implementors§