Trait bounded_static::IntoBoundedStatic
source · [−]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
Required methods
fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned T into an owned T such that T: 'static.
Implementations on Foreign Types
sourceimpl IntoBoundedStatic for &'static str
impl IntoBoundedStatic for &'static str
No-op IntoBoundedStatic impl for converting &'static str into &'static str.
type Static = &'static str
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for bool
impl IntoBoundedStatic for bool
No-op IntoBoundedStatic impl for this primitive type.
type Static = bool
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for char
impl IntoBoundedStatic for char
No-op IntoBoundedStatic impl for this primitive type.
type Static = char
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for f32
impl IntoBoundedStatic for f32
No-op IntoBoundedStatic impl for this primitive type.
type Static = f32
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for f64
impl IntoBoundedStatic for f64
No-op IntoBoundedStatic impl for this primitive type.
type Static = f64
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for usize
impl IntoBoundedStatic for usize
No-op IntoBoundedStatic impl for this primitive type.
type Static = usize
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for u8
impl IntoBoundedStatic for u8
No-op IntoBoundedStatic impl for this primitive type.
type Static = u8
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for u16
impl IntoBoundedStatic for u16
No-op IntoBoundedStatic impl for this primitive type.
type Static = u16
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for u32
impl IntoBoundedStatic for u32
No-op IntoBoundedStatic impl for this primitive type.
type Static = u32
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for u64
impl IntoBoundedStatic for u64
No-op IntoBoundedStatic impl for this primitive type.
type Static = u64
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for u128
impl IntoBoundedStatic for u128
No-op IntoBoundedStatic impl for this primitive type.
type Static = u128
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for isize
impl IntoBoundedStatic for isize
No-op IntoBoundedStatic impl for this primitive type.
type Static = isize
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for i8
impl IntoBoundedStatic for i8
No-op IntoBoundedStatic impl for this primitive type.
type Static = i8
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for i16
impl IntoBoundedStatic for i16
No-op IntoBoundedStatic impl for this primitive type.
type Static = i16
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for i32
impl IntoBoundedStatic for i32
No-op IntoBoundedStatic impl for this primitive type.
type Static = i32
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for i64
impl IntoBoundedStatic for i64
No-op IntoBoundedStatic impl for this primitive type.
type Static = i64
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for i128
impl IntoBoundedStatic for i128
No-op IntoBoundedStatic impl for this primitive type.
type Static = i128
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for ()
impl IntoBoundedStatic for ()
No-op IntoBoundedStatic impl for unit type ().
type Static = ()
fn into_static(self) -> Self::Static
sourceimpl<T> IntoBoundedStatic for Option<T> where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for Option<T> where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting Option<T> into Option<T>: 'static.
sourceimpl<T, E> IntoBoundedStatic for Result<T, E> where
T: IntoBoundedStatic,
E: IntoBoundedStatic,
impl<T, E> IntoBoundedStatic for Result<T, E> where
T: IntoBoundedStatic,
E: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting Result<T, E> into Result<T, E>: 'static.
sourceimpl<T, const N: usize> IntoBoundedStatic for [T; N] where
T: IntoBoundedStatic,
impl<T, const N: usize> IntoBoundedStatic for [T; N] where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting [T; const N: usize] into [T; const N: usize]: 'static.
sourceimpl<T> IntoBoundedStatic for Cow<'_, T> where
T: 'static + ToOwned + ?Sized,
impl<T> IntoBoundedStatic for Cow<'_, T> where
T: 'static + ToOwned + ?Sized,
Blanket IntoBoundedStatic impl for converting Cow<'a, T: ?Sized> into Cow<'static, T: ?Sized>.
type Static = Cow<'static, T>
fn into_static(self) -> Self::Static
sourceimpl IntoBoundedStatic for String
impl IntoBoundedStatic for String
No-op IntoBoundedStatic impl for String.
type Static = Self
fn into_static(self) -> Self::Static
sourceimpl<T> IntoBoundedStatic for Vec<T> where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for Vec<T> where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting Vec<T> into Vec<T>: 'static.
sourceimpl<T> IntoBoundedStatic for BinaryHeap<T> where
T: IntoBoundedStatic,
T::Static: Ord,
impl<T> IntoBoundedStatic for BinaryHeap<T> where
T: IntoBoundedStatic,
T::Static: Ord,
Blanket IntoBoundedStatic impl for converting BinaryHeap<T> into BinaryHeap<T>: 'static.
type Static = BinaryHeap<T::Static>
fn into_static(self) -> Self::Static
sourceimpl<K, V> IntoBoundedStatic for BTreeMap<K, V> where
K: IntoBoundedStatic,
K::Static: Ord,
V: IntoBoundedStatic,
impl<K, V> IntoBoundedStatic for BTreeMap<K, V> where
K: IntoBoundedStatic,
K::Static: Ord,
V: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting BTreeMap<K, V> into BTreeMap<K, V>: 'static.
sourceimpl<T> IntoBoundedStatic for BTreeSet<T> where
T: IntoBoundedStatic,
T::Static: Ord,
impl<T> IntoBoundedStatic for BTreeSet<T> where
T: IntoBoundedStatic,
T::Static: Ord,
Blanket IntoBoundedStatic impl for converting BTreeSet<T> into BTreeSet<T>: 'static.
sourceimpl<T> IntoBoundedStatic for LinkedList<T> where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for LinkedList<T> where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting LinkedList<T> into LinkedList<T>: 'static.
type Static = LinkedList<T::Static>
fn into_static(self) -> Self::Static
sourceimpl<T> IntoBoundedStatic for VecDeque<T> where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for VecDeque<T> where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting VecDeque<T> into VecDeque<T>: 'static.
sourceimpl<T> IntoBoundedStatic for Box<T> where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for Box<T> where
T: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for converting Box<T> into Box<T>: 'static.
sourceimpl<K, V, S: BuildHasher> IntoBoundedStatic for HashMap<K, V, S> where
K: IntoBoundedStatic,
K::Static: Eq + Hash,
V: IntoBoundedStatic,
impl<K, V, S: BuildHasher> IntoBoundedStatic for HashMap<K, V, S> where
K: IntoBoundedStatic,
K::Static: Eq + Hash,
V: IntoBoundedStatic,
Blanket IntoBoundedStatic impl for for converting HashMap<K, V> into HashMap<K, V>: 'static.
sourceimpl<T, S: BuildHasher> IntoBoundedStatic for HashSet<T, S> where
T: IntoBoundedStatic,
T::Static: Eq + Hash,
impl<T, S: BuildHasher> IntoBoundedStatic for HashSet<T, S> where
T: IntoBoundedStatic,
T::Static: Eq + Hash,
Blanket IntoBoundedStatic impl for converting HashSet<T> into HashSet<T>: 'static.