Struct partial_const::char::Const[][src]

pub struct Const<const VALUE: char>(_);

Constant char value

Example

let const_value = partial_const::char::Const::<'A'>::new();
assert_eq!(core::mem::size_of::<partial_const::char::Const<'A'>>(), 0);
assert_eq!(const_value.value(), 'A');

Implementations

impl<const VALUE: char> Const<VALUE>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<const VALUE: char> Clone for Const<VALUE>[src]

impl<const VALUE: char> Copy for Const<VALUE>[src]

impl<const VALUE: char> Debug for Const<VALUE>[src]

impl<const VALUE: char> Default for Const<VALUE>[src]

impl<const VALUE: char> Display for Const<VALUE>[src]

impl<const VALUE: char> Equals<Const<VALUE>> for Const<VALUE>[src]

type ConstSide = Const<VALUE>

The const side of two types. Read more

impl<const VALUE: char> Equals<Const<VALUE>> for char[src]

type ConstSide = Const<VALUE>

The const side of two types. Read more

impl<const VALUE: char> Equals<char> for Const<VALUE>[src]

type ConstSide = Const<VALUE>

The const side of two types. Read more

impl<const VALUE: char> MayBeConstAT for Const<VALUE>[src]

type Type = char

impl<const VALUE1: char, const VALUE2: char> PartialEq<Const<VALUE2>> for Const<VALUE1>[src]

impl<const VALUE: char> PartialEq<char> for Const<VALUE>[src]

impl<const VALUE1: char, const VALUE2: char> PartialOrd<Const<VALUE2>> for Const<VALUE1>[src]

impl<const VALUE: char> PartialOrd<char> for Const<VALUE>[src]

Auto Trait Implementations

impl<const VALUE: char> RefUnwindSafe for Const<VALUE>

impl<const VALUE: char> Send for Const<VALUE>

impl<const VALUE: char> Sync for Const<VALUE>

impl<const VALUE: char> Unpin for Const<VALUE>

impl<const VALUE: char> UnwindSafe for Const<VALUE>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.