Trait strum::AsStaticRef[][src]

pub trait AsStaticRef<T> where
    T: ?Sized
{ fn as_static(&self) -> &'static T; }

A cheap reference-to-reference conversion. Used to convert a value to a reference value with 'static lifetime within generic code. #[deprecated(since=“0.13.0”, note=“please use #[derive(IntoStaticStr)] instead”)]

Required methods

fn as_static(&self) -> &'static T[src]

Loading content...

Implementors

Loading content...