pub trait IntoBoundedStatic {
    type Static: 'static;

    // Required method
    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§

source

type Static: 'static

The target type is bounded by the 'static lifetime.

Required Methods§

source

fn into_static(self) -> Self::Static

Convert an owned T into an owned T such that T: 'static.

Implementations on Foreign Types§

source§

impl IntoBoundedStatic for &'static str

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

§

type Static = &'static str

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for bool

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = bool

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for char

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = char

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for f32

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = f32

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for f64

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = f64

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for i8

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = i8

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for i16

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = i16

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for i32

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = i32

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for i64

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = i64

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for i128

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = i128

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for isize

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = isize

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for u8

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = u8

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for u16

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = u16

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for u32

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = u32

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for u64

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = u64

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for u128

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = u128

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for ()

No-op IntoBoundedStatic impl for unit type ().

§

type Static = ()

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for usize

No-op IntoBoundedStatic impl for this primitive type.

§

type Static = usize

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for String

No-op IntoBoundedStatic impl for String.

§

type Static = String

source§

fn into_static(self) -> Self::Static

source§

impl IntoBoundedStatic for NonZeroI8

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroI16

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroI32

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroI64

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroI128

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroIsize

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroU8

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroU16

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroU32

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroU64

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroU128

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for NonZeroUsize

No-op IntoBoundedStatic impl for this primitive type.

source§

impl IntoBoundedStatic for SmolStr

No-op IntoBoundedStatic impl for smol_str::SmolStr.

§

type Static = SmolStr

source§

fn into_static(self) -> Self::Static

source§

impl<A> IntoBoundedStatic for SmallVec<A>where A: Array + 'static, A::Item: Clone,

No-op IntoBoundedStatic impl for smallvec::SmallVec.

§

type Static = SmallVec<A>

source§

fn into_static(self) -> Self::Static

source§

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.

source§

impl<K, V, S> IntoBoundedStatic for HashMap<K, V, S>where K: IntoBoundedStatic, K::Static: Eq + Hash, V: IntoBoundedStatic, S: ToBoundedStatic, S::Static: BuildHasher,

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

source§

impl<K, V, S> IntoBoundedStatic for AHashMap<K, V, S>where K: IntoBoundedStatic, K::Static: Eq + Hash, V: IntoBoundedStatic, S: ToBoundedStatic, S::Static: BuildHasher,

Blanket IntoBoundedStatic impl for converting ahash::AHashMap<K, V, S> into ahash::AHashMap<K, V, S>: 'static.

source§

impl<Mode> IntoBoundedStatic for SmartString<Mode>where Mode: SmartStringMode + 'static,

No-op IntoBoundedStatic impl for smartstring::SmartString.

§

type Static = SmartString<Mode>

source§

fn into_static(self) -> Self::Static

source§

impl<T0: IntoBoundedStatic> IntoBoundedStatic for (T0,)

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

§

type Static = (<T0 as IntoBoundedStatic>::Static,)

source§

fn into_static(self) -> Self::Static

source§

impl<T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T1, T0)

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

source§

impl<T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T2, T1, T0)

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

source§

impl<T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T3, T2, T1, T0)

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

source§

impl<T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T4, T3, T2, T1, T0)

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

source§

impl<T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T5, T4, T3, T2, T1, T0)

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

source§

impl<T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T6, T5, T4, T3, T2, T1, T0)

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

source§

impl<T7: IntoBoundedStatic, T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T7, T6, T5, T4, T3, T2, T1, T0)

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

source§

impl<T8: IntoBoundedStatic, T7: IntoBoundedStatic, T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T8, T7, T6, T5, T4, T3, T2, T1, T0)

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

source§

impl<T9: IntoBoundedStatic, T8: IntoBoundedStatic, T7: IntoBoundedStatic, T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)

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

source§

impl<T10: IntoBoundedStatic, T9: IntoBoundedStatic, T8: IntoBoundedStatic, T7: IntoBoundedStatic, T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)

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

source§

impl<T11: IntoBoundedStatic, T10: IntoBoundedStatic, T9: IntoBoundedStatic, T8: IntoBoundedStatic, T7: IntoBoundedStatic, T6: IntoBoundedStatic, T5: IntoBoundedStatic, T4: IntoBoundedStatic, T3: IntoBoundedStatic, T2: IntoBoundedStatic, T1: IntoBoundedStatic, T0: IntoBoundedStatic> IntoBoundedStatic for (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)

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

source§

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>

source§

fn into_static(self) -> Self::Static

source§

impl<T> IntoBoundedStatic for Option<T>where T: IntoBoundedStatic,

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

source§

impl<T> IntoBoundedStatic for Box<T>where T: IntoBoundedStatic,

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

source§

impl<T> IntoBoundedStatic for BinaryHeap<T>where T: IntoBoundedStatic, T::Static: Ord,

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

source§

impl<T> IntoBoundedStatic for BTreeSet<T>where T: IntoBoundedStatic, T::Static: Ord,

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

source§

impl<T> IntoBoundedStatic for LinkedList<T>where T: IntoBoundedStatic,

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

source§

impl<T> IntoBoundedStatic for VecDeque<T>where T: IntoBoundedStatic,

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

source§

impl<T> IntoBoundedStatic for Vec<T>where T: IntoBoundedStatic,

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

source§

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.

source§

impl<T, S> IntoBoundedStatic for HashSet<T, S>where T: IntoBoundedStatic, T::Static: Eq + Hash, S: ToBoundedStatic, S::Static: BuildHasher,

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

source§

impl<T, S> IntoBoundedStatic for AHashSet<T, S>where T: IntoBoundedStatic, T::Static: Eq + Hash, S: ToBoundedStatic, S::Static: BuildHasher,

Blanket IntoBoundedStatic impl for converting ahash::AHashSet<T, S> into ahash::AHashSet<T, S>: 'static.

source§

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.

§

type Static = [<T as IntoBoundedStatic>::Static; N]

source§

fn into_static(self) -> Self::Static

Implementors§