pub trait ToBoundedStatic {
    type Static: 'static;

    fn to_static(&self) -> Self::Static;
}
Expand description

A trait for converting &T to an owned T such that T: 'static.

See the module level documentation for details.

Required Associated Types

The target type is bounded by the 'static lifetime.

Required Methods

Convert an &T to an owned T such that T: 'static.

Implementations on Foreign Types

No-op ToBoundedStatic impl for converting &'static str to &'static str.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for this primitive type.

No-op ToBoundedStatic impl for unit type ().

Blanket ToBoundedStatic impl for converting Option<T> to Option<T>: 'static.

Blanket ToBoundedStatic impl for converting Result<T, E> to Result<T, E>: 'static.

Blanket ToBoundedStatic impl for converting [T; const N: usize] to [T; const N: usize]: 'static.

Blanket ToBoundedStatic impl for converting tuple (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,) to (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,) to (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,) to (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T8, T7, T6, T5, T4, T3, T2, T1, T0,) to (T8, T7, T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T7, T6, T5, T4, T3, T2, T1, T0,) to (T7, T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T6, T5, T4, T3, T2, T1, T0,) to (T6, T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T5, T4, T3, T2, T1, T0,) to (T5, T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T4, T3, T2, T1, T0,) to (T4, T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T3, T2, T1, T0,) to (T3, T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T2, T1, T0,) to (T2, T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T1, T0,) to (T1, T0,): 'static

Blanket ToBoundedStatic impl for converting tuple (T0,) to (T0,): 'static

Blanket ToBoundedStatic impl for converting Cow<'a, T: ?Sized> to Cow<'static, T: ?Sized>.

ToBoundedStatic impl for String.

Blanket ToBoundedStatic impl for converting Vec<T> to Vec<T>: 'static.

Blanket ToBoundedStatic impl for converting BinaryHeap<T> into BinaryHeap<T>: 'static.

Blanket ToBoundedStatic impl for converting BTreeMap<K, V> into BTreeMap<K, V>: 'static.

Blanket ToBoundedStatic impl for converting BTreeSet<T> into BTreeSet<T>: 'static.

Blanket ToBoundedStatic impl for converting LinkedList<T> into LinkedList<T>: 'static.

Blanket ToBoundedStatic impl for converting VecDeque<T> into VecDeque<T>: 'static.

Blanket ToBoundedStatic impl for converting Box<T> to Box<T>: 'static.

Blanket ToBoundedStatic impl for converting HashMap<K, V> to HashMap<K, V>: 'static.

Blanket ToBoundedStatic impl for converting HashSet<T> into HashSet<T>: 'static.

ToBoundedStatic impl for smol_str::SmolStr.

ToBoundedStatic impl for smallvec::SmallVec.

ToBoundedStatic impl for smartstring::SmartString.

Implementors