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]
unsafe fn new(ref_: &'a T) -> Self
Asserts that ref_ points into static data
Trait Implementations
impl<'a, T> StaticRef<T> for Ref<'a, T>[src]
impl<'a, T> Clone for Ref<'a, T>[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more