[][src]Struct borrow_as::Ref

#[repr(transparent)]pub struct Ref<T: ?Sized>(_);

Immutable reference.

Trait Implementations

impl<T: ?Sized> AsRef<T> for Ref<T>[src]

impl<T: ?Sized> Borrow<T> for Ref<T>[src]

impl<T: Debug + ?Sized> Debug for Ref<T>[src]

impl<T: ?Sized> Deref for Ref<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> Display for Ref<T> where
    &'a T: Debug
[src]

impl<T: ?Sized> Eq for Ref<T> where
    &'a T: Eq + PartialEq<Self>, 
[src]

impl<T: ?Sized> Hash for Ref<T> where
    &'a T: Hash
[src]

impl<T: ?Sized> Ord for Ref<T> where
    &'a T: Ord + Eq + PartialOrd<Self>, 
[src]

impl<T: ?Sized, U: ?Sized> PartialEq<U> for Ref<T> where
    &'a T: PartialEq<U>, 
[src]

impl<T: ?Sized, U: ?Sized> PartialOrd<U> for Ref<T> where
    &'a T: PartialOrd<U>, 
[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for Ref<T> where
    T: RefUnwindSafe

impl<T> !Send for Ref<T>

impl<T> !Sync for Ref<T>

impl<T: ?Sized> Unpin for Ref<T>

impl<T: ?Sized> UnwindSafe for Ref<T> where
    T: RefUnwindSafe

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