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.

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 unit type ().

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

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

Blanket ToBoundedStatic impl for converting [T; const N: usize] into [T; const N: usize]: '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.

Implementors