Trait MsbInto

Source
pub trait MsbInto<T>: Sized {
    // Required method
    fn msb_into(self) -> T;
}
Expand description

MSB 0 bit numbering data to value conversion that consumes the input bytes

The opposite of FromMsb. One should avoid implementing MsbInto and implement FromMsb instead.

Required Methods§

Source

fn msb_into(self) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, U: FromMsb<T>> MsbInto<U> for T

Implementing FromMsb automatically provides one with an implementation of MsbInto thanks to this blanket implementation.