Trait twitch_message::IntoStatic
source · pub trait IntoStatic {
type Output: 'static;
fn into_static(self) -> Self::Output;
}
Expand description
A trait for converting a T: ’a to a T: ’static
This is used for going from a Message<'a>
to a Message<'static>
or any of the sub types (see messages
)
Required Associated Types§
sourcetype Output: 'static
type Output: 'static
Output of IntoStatic::into_static
.
This is an alternative to ToOwned::Owned
Required Methods§
sourcefn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
This method casts self
between Self<'a>
and Self<'static>
.