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.

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 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 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.

Implementors