Struct shred::cell::Ref [] [src]

pub struct Ref<'a, T: 'a> { /* fields omitted */ }

An immutable reference to data in a TrustCell.

Access the value via std::ops::Deref (e.g. *val)

Trait Implementations

impl<'a, T: Debug + 'a> Debug for Ref<'a, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, T> Deref for Ref<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T> Drop for Ref<'a, T>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, T> Send for Ref<'a, T> where
    T: Sync

impl<'a, T> Sync for Ref<'a, T> where
    T: Sync