Struct std::local_data::Ref[src]

pub struct Ref<T> {
    // some fields omitted
}

An RAII immutable reference to a task-local value.

The task-local data can be accessed through this value, and when this structure is dropped it will return the borrow on the data.

Trait Implementations

impl<T: 'static> Deref<T> for Ref<T>

fn deref<T: 'static>(&'a self) -> &'a T

impl<T: 'static> Drop for Ref<T>

fn drop<T: 'static>(&mut self)