[][src]Struct colored_json::ColoredFormatter

pub struct ColoredFormatter<F> where
    F: Formatter
{ /* fields omitted */ }

ColoredFormatter decorates a Formatter with color defined in Styler

Methods

impl<F> ColoredFormatter<F> where
    F: Formatter
[src]

pub fn new(formatter: F) -> Self[src]

pub fn with_styler(formatter: F, styler: Styler) -> Self[src]

pub fn to_colored_json_auto(self, value: &Value) -> Result<String>[src]

pub fn to_colored_json(self, value: &Value, mode: ColorMode) -> Result<String>[src]

pub fn write_colored_json<W>(
    self,
    value: &Value,
    writer: &mut W,
    mode: ColorMode
) -> Result<(), Error> where
    W: Write
[src]

Trait Implementations

impl<F: Clone> Clone for ColoredFormatter<F> where
    F: Formatter
[src]

impl<F> Formatter for ColoredFormatter<F> where
    F: Formatter
[src]

Auto Trait Implementations

impl<F> Send for ColoredFormatter<F> where
    F: Send

impl<F> Sync for ColoredFormatter<F> where
    F: Sync

impl<F> Unpin for ColoredFormatter<F> where
    F: Unpin

impl<F> UnwindSafe for ColoredFormatter<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for ColoredFormatter<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]