Struct rustrt::local_data::RefExperimental [-]  [+] [src]

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

A 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<'a>(&'a self) -> &'a T

impl<T: 'static + Show> Show for Ref<T>

fn fmt(&self, f: &mut Formatter) -> Result

impl<T: PartialEq + 'static> PartialEq for Ref<T>

fn eq(&self, other: &Ref<T>) -> bool

fn ne(&self, other: &Ref<T>) -> bool

impl<T: Eq + 'static> Eq for Ref<T>

impl<T: PartialOrd + 'static> PartialOrd for Ref<T>

fn partial_cmp(&self, other: &Ref<T>) -> Option<Ordering>

fn lt(&self, other: &Ref<T>) -> bool

fn le(&self, other: &Ref<T>) -> bool

fn gt(&self, other: &Ref<T>) -> bool

fn ge(&self, other: &Ref<T>) -> bool

impl<T: Ord + 'static> Ord for Ref<T>

fn cmp(&self, other: &Ref<T>) -> Ordering

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

fn drop(&mut self)