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§

Output of IntoStatic::into_static.

This is an alternative to ToOwned::Owned

Required Methods§

This method casts self between Self<'a> and Self<'static>.

Implementations on Foreign Types§

Implementors§