[][src]Struct phantom_newtype::DisplayProxy

pub struct DisplayProxy<'a, T, Displayer> where
    Displayer: DisplayerOf<T>, 
{ /* fields omitted */ }

An object DisplayProxy, when is asked to display itself, displays T using the specified Displayer instead.

Methods

impl<'a, T, Displayer> DisplayProxy<'a, T, Displayer> where
    Displayer: DisplayerOf<T>, 
[src]

pub fn new(value: &'a T) -> Self[src]

Trait Implementations

impl<'a, T, Displayer> Display for DisplayProxy<'a, T, Displayer> where
    Displayer: DisplayerOf<T>, 
[src]

Auto Trait Implementations

impl<'a, T, Displayer> Send for DisplayProxy<'a, T, Displayer> where
    Displayer: Send,
    T: Sync

impl<'a, T, Displayer> Sync for DisplayProxy<'a, T, Displayer> where
    Displayer: Sync,
    T: Sync

impl<'a, T, Displayer> Unpin for DisplayProxy<'a, T, Displayer> where
    Displayer: Unpin

impl<'a, T, Displayer> UnwindSafe for DisplayProxy<'a, T, Displayer> where
    Displayer: UnwindSafe,
    T: RefUnwindSafe

impl<'a, T, Displayer> RefUnwindSafe for DisplayProxy<'a, T, Displayer> where
    Displayer: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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]