Trait merde::IntoStatic
source · pub trait IntoStatic {
type Output: 'static;
// Required method
fn into_static(self) -> Self::Output;
}Expand description
Allow turning a value into an “owned” variant, which can then be returned, moved, etc.
This usually involves allocating buffers for Cow<'a, str>, etc.
Required Associated Types§
Required Methods§
sourcefn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc.
This allocates, for all but the most trivial types.