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> Clone for Ref<'a, T> where
T: 'static,
[src]
T: 'static,
fn clone(&self) -> Ref<'a, T>
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
impl<'a, T: Copy> Copy for Ref<'a, T> where
T: 'static,
[src]
T: 'static,