Struct amethyst::ecs::shred::cell::Ref[]

pub struct Ref<'a, T> where
    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> Deref for Ref<'a, T>

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<'a, T> Drop for Ref<'a, T>

Executes the destructor for this type. Read more

impl<'a, T> Debug for Ref<'a, T> where
    T: 'a + Debug

Formats the value using the given formatter. 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