Skip to main content

IntoEncoded

Trait IntoEncoded 

Source
pub trait IntoEncoded<S> {
    type Output;

    // Required method
    fn into_encoded(self) -> Self::Output;
}
Expand description

Source-side ergonomic counterpart of Encodes, in the Into direction: methods like 42u32.to_inline() resolve here.

Blanket-derived from every Encodes impl — users never implement IntoEncoded directly. The split mirrors std’s From/Into: implement From, get Into for free.

Required Associated Types§

Source

type Output

The concrete form this source produces.

Required Methods§

Source

fn into_encoded(self) -> Self::Output

Run the conversion.

Implementors§

Source§

impl<S, T> IntoEncoded<S> for T
where S: Encodes<T>,

Source§

type Output = <S as Encodes<T>>::Output