[][src]Struct ro::ReadOnly

pub struct ReadOnly<T> { /* fields omitted */ }

Methods

impl<T> ReadOnly<T>[src]

Trait Implementations

impl<T> Deref for ReadOnly<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Debug> Debug for ReadOnly<T>[src]

impl<T> Display for ReadOnly<T> where
    T: Display
[src]

impl<T: PartialEq> PartialEq<ReadOnly<T>> for ReadOnly<T>[src]

impl<T: Eq> Eq for ReadOnly<T>[src]

impl<T: Ord> Ord for ReadOnly<T>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<T: PartialOrd> PartialOrd<ReadOnly<T>> for ReadOnly<T>[src]

impl<T: Hash> Hash for ReadOnly<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

Auto Trait Implementations

impl<T> Unpin for ReadOnly<T> where
    T: Unpin

impl<T> Sync for ReadOnly<T> where
    T: Sync

impl<T> Send for ReadOnly<T> where
    T: Send

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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]