Struct static_ref::Ref [] [src]

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

&'a T that points into static data

Methods

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

Asserts that ref_ points into static data

Trait Implementations

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

impl<'a, T: Clone> Clone for Ref<'a, T> where
    T: 'static, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: Copy> Copy for Ref<'a, T> where
    T: 'static, 
[src]

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

The resulting type after dereferencing

The method called to dereference a value