pub trait IntoBoundedStatic {
    type Static: 'static;

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

A trait for converting an owned T into 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 owned T into an owned T such that T: 'static.

Implementations on Foreign Types

No-op IntoBoundedStatic impl for converting &'static str into &'static str.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for this primitive type.

No-op IntoBoundedStatic impl for unit type ().

Blanket IntoBoundedStatic impl for converting Option<T> into Option<T>: 'static.

Blanket IntoBoundedStatic impl for converting Result<T, E> into Result<T, E>: 'static.

Blanket IntoBoundedStatic impl for converting [T; const N: usize] into [T; const N: usize]: 'static.

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

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

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

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

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

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

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

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

Blanket IntoBoundedStatic impl for converting tuple (T3, T2, T1, T0,) into (T3, T2, T1, T0,): 'static

Blanket IntoBoundedStatic impl for converting tuple (T2, T1, T0,) into (T2, T1, T0,): 'static

Blanket IntoBoundedStatic impl for converting tuple (T1, T0,) into (T1, T0,): 'static

Blanket IntoBoundedStatic impl for converting tuple (T0,) into (T0,): 'static

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

No-op IntoBoundedStatic impl for String.

Blanket IntoBoundedStatic impl for converting Vec<T> into Vec<T>: 'static.

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

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

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

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

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

Blanket IntoBoundedStatic impl for converting Box<T> into Box<T>: 'static.

Blanket IntoBoundedStatic impl for for converting HashMap<K, V> into HashMap<K, V>: 'static.

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

No-op IntoBoundedStatic impl for smol_str::SmolStr.

No-op IntoBoundedStatic impl for smallvec::SmallVec.

No-op IntoBoundedStatic impl for smartstring::SmartString.

Implementors