[][src]Struct ro::ReadOnly

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

Read-only container

The key of this container is Deref implementation. It allows you to access public fields and immutable functions of T. In case T has mutable functions, those are not accessible.

By design, the struct has no functions.

Trait Implementations

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

type Target = T

The resulting type after dereferencing.

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

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]

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

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

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

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

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

Auto Trait Implementations

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

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

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

Blanket Implementations

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

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

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

type Error = !

The type returned in the event of a conversion error.

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