Skip to main content

AsStaticRef

Trait AsStaticRef 

Source
pub trait AsStaticRef<T>: AsRef<T> {
    // Required method
    fn as_static_ref(&'static self) -> &'static T;
}

Required Methods§

Source

fn as_static_ref(&'static self) -> &'static T

Implementors§

Source§

impl<T, R> AsStaticRef<R> for T
where T: AsRef<R>,