strum

Trait AsStaticRef

Source
pub trait AsStaticRef<T>
where T: ?Sized,
{ // Required method fn as_static(&self) -> &'static T; }
๐Ÿ‘ŽDeprecated since 0.22.0: please use #[derive(IntoStaticStr)] instead
Expand description

A cheap reference-to-reference conversion. Used to convert a value to a reference value with 'static lifetime within generic code.

Required Methodsยง

Source

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

๐Ÿ‘ŽDeprecated since 0.22.0: please use #[derive(IntoStaticStr)] instead

Implementorsยง