IntoBoundedStatic

Trait IntoBoundedStatic 

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

Source§

type Static = &'static str

Source§

fn into_static(self) -> Self::Static

Source§

impl IntoBoundedStatic for Month

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for Weekday

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for bool

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for char

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for f32

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for f64

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for i8

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for i16

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for i32

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for i64

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for i128

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for isize

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for u8

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for u16

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for u32

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for u64

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for u128

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for ()

No-op IntoBoundedStatic impl for unit type ().

Source§

impl IntoBoundedStatic for usize

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for String

Available on crate feature alloc only.

No-op IntoBoundedStatic impl for String.

Source§

impl IntoBoundedStatic for Months

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NaiveDate

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NaiveDateTime

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for IsoWeek

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for Days

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NaiveTime

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for FixedOffset

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for Local

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for Utc

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for TimeDelta

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for SmolStr

Available on crate feature smol_str only.

No-op IntoBoundedStatic impl for smol_str::SmolStr.

Source§

impl IntoBoundedStatic for NonZeroI8

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroI16

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroI32

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroI64

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroI128

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroIsize

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroU8

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroU16

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroU32

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroU64

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroU128

No-op IntoBoundedStatic impl for this Copy type.

Source§

impl IntoBoundedStatic for NonZeroUsize

No-op IntoBoundedStatic impl for this Copy type.

Source§

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

Available on crate feature smallvec only.

No-op IntoBoundedStatic impl for smallvec::SmallVec.

Source§

impl<K, V> IntoBoundedStatic for BTreeMap<K, V>

Available on crate feature collections only.

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

Source§

impl<K, V, S> IntoBoundedStatic for HashMap<K, V, S>

Available on crate feature std only.

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>

Available on crate features ahash and std only.

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,

Available on crate feature smartstring only.

No-op IntoBoundedStatic impl for smartstring::SmartString.

Source§

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

Blanket IntoBoundedStatic impl for converting tuple (T0,) into (T0,): '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,

Available on crate feature alloc only.

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

Source§

type Static = Cow<'static, T>

Source§

fn into_static(self) -> Self::Static

Source§

impl<T> IntoBoundedStatic for Option<T>

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

Source§

impl<T> IntoBoundedStatic for Box<T>

Available on crate feature alloc only.

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

Source§

impl<T> IntoBoundedStatic for BinaryHeap<T>

Available on crate feature collections only.

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

Source§

impl<T> IntoBoundedStatic for BTreeSet<T>

Available on crate feature collections only.

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

Source§

impl<T> IntoBoundedStatic for LinkedList<T>

Available on crate feature collections only.

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

Source§

impl<T> IntoBoundedStatic for VecDeque<T>

Available on crate feature collections only.

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

Source§

impl<T> IntoBoundedStatic for Vec<T>

Available on crate feature alloc only.

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

Source§

impl<T, E> IntoBoundedStatic for Result<T, E>

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

Source§

impl<T, S> IntoBoundedStatic for HashSet<T, S>

Available on crate feature std only.

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

Source§

impl<T, S> IntoBoundedStatic for AHashSet<T, S>

Available on crate features ahash and std only.

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]

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

Source§

impl<Tz> IntoBoundedStatic for DateTime<Tz>

Available on crate feature chrono only.

Blanket IntoBoundedStatic impl for converting chrono::DateTime<Tz> into chrono::DateTime<Tz>: 'static.

Implementors§