[][src]Struct index_ext::tag::Constant

pub struct Constant<T>(_);

A tag using a ConstantSource.

The only safe way to construct an ExactSize is by copying the associated constant which expresses the length indicated in the trait impl. This implies that the value is unique. (Disregarding unsound rustc issues that allow duplicate trait impls).

Implementations

impl<T: ConstantSource> Constant<T>[src]

pub const EXACT_SIZE: ExactSize<Self>[src]

Trait Implementations

impl<T> Clone for Constant<T>[src]

impl<T> Copy for Constant<T>[src]

impl<T: ConstantSource> Tag for Constant<T>[src]

Auto Trait Implementations

impl<T> Send for Constant<T>

impl<T> Sync for Constant<T>

impl<T> Unpin for Constant<T>

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