[][src]Struct const_format::for_examples::Unit

pub struct Unit;
This is supported on crate feature fmt only.

An example unit struct which implements const debug formatting.

Implementations

impl Unit[src]

pub const fn const_debug_fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

pub const fn const_eq(&self, _other: &Self) -> bool[src]

Trait Implementations

impl Clone for Unit[src]

impl Copy for Unit[src]

impl Debug for Unit[src]

impl FormatMarker for Unit[src]

type Kind = IsNotStdKind

What kind of type this is, this can be one of: Read more

type This = Self

The type after dereferencing, implemented as type This = Self; for all non-reference types Read more

Auto Trait Implementations

impl Send for Unit[src]

impl Sync for Unit[src]

impl Unpin for Unit[src]

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, 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.