Struct Msb

Source
pub struct Msb<T>(pub T);
Expand description

Type wrapper for MSB 0 bit numbering data

Tuple Fields§

§0: T

Trait Implementations§

Source§

impl<T: Clone> Clone for Msb<T>

Source§

fn clone(&self) -> Msb<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Msb<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, U, const AN: usize> From<P1<T, AN>> for Msb<U>
where U: FromMsb<P1<T, AN>>,

Source§

fn from(data: P1<T, AN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize> From<P10<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN>> for Msb<U>
where U: FromMsb<P10<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN>>,

Source§

fn from(data: P10<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize> From<P11<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN>> for Msb<U>
where U: FromMsb<P11<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN>>,

Source§

fn from(data: P11<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize> From<P12<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN>> for Msb<U>
where U: FromMsb<P12<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN>>,

Source§

fn from(data: P12<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize> From<P13<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN>> for Msb<U>
where U: FromMsb<P13<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN>>,

Source§

fn from( data: P13<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize> From<P14<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN>> for Msb<U>
where U: FromMsb<P14<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN>>,

Source§

fn from( data: P14<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize> From<P15<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON>> for Msb<U>
where U: FromMsb<P15<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON>>,

Source§

fn from( data: P15<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize> From<P16<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN>> for Msb<U>
where U: FromMsb<P16<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN>>,

Source§

fn from( data: P16<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize> From<P17<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN>> for Msb<U>
where U: FromMsb<P17<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN>>,

Source§

fn from( data: P17<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize> From<P18<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN>> for Msb<U>
where U: FromMsb<P18<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN>>,

Source§

fn from( data: P18<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize> From<P19<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN>> for Msb<U>
where U: FromMsb<P19<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN>>,

Source§

fn from( data: P19<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize> From<P2<T, AN, BN>> for Msb<U>
where U: FromMsb<P2<T, AN, BN>>,

Source§

fn from(data: P2<T, AN, BN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize> From<P20<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN>> for Msb<U>
where U: FromMsb<P20<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN>>,

Source§

fn from( data: P20<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize> From<P21<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN>> for Msb<U>
where U: FromMsb<P21<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN>>,

Source§

fn from( data: P21<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize, const VN: usize> From<P22<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN>> for Msb<U>
where U: FromMsb<P22<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN>>,

Source§

fn from( data: P22<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize, const VN: usize, const WN: usize> From<P23<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN>> for Msb<U>
where U: FromMsb<P23<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN>>,

Source§

fn from( data: P23<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize, const VN: usize, const WN: usize, const XN: usize> From<P24<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN>> for Msb<U>
where U: FromMsb<P24<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN>>,

Source§

fn from( data: P24<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize, const VN: usize, const WN: usize, const XN: usize, const YN: usize> From<P25<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN>> for Msb<U>
where U: FromMsb<P25<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN>>,

Source§

fn from( data: P25<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize, const JN: usize, const KN: usize, const LN: usize, const MN: usize, const NN: usize, const ON: usize, const PN: usize, const QN: usize, const RN: usize, const SN: usize, const TN: usize, const UN: usize, const VN: usize, const WN: usize, const XN: usize, const YN: usize, const ZN: usize> From<P26<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN, ZN>> for Msb<U>
where U: FromMsb<P26<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN, ZN>>,

Source§

fn from( data: P26<T, AN, BN, CN, DN, EN, FN, GN, HN, IN, JN, KN, LN, MN, NN, ON, PN, QN, RN, SN, TN, UN, VN, WN, XN, YN, ZN>, ) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize> From<P3<T, AN, BN, CN>> for Msb<U>
where U: FromMsb<P3<T, AN, BN, CN>>,

Source§

fn from(data: P3<T, AN, BN, CN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize> From<P4<T, AN, BN, CN, DN>> for Msb<U>
where U: FromMsb<P4<T, AN, BN, CN, DN>>,

Source§

fn from(data: P4<T, AN, BN, CN, DN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize> From<P5<T, AN, BN, CN, DN, EN>> for Msb<U>
where U: FromMsb<P5<T, AN, BN, CN, DN, EN>>,

Source§

fn from(data: P5<T, AN, BN, CN, DN, EN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize> From<P6<T, AN, BN, CN, DN, EN, FN>> for Msb<U>
where U: FromMsb<P6<T, AN, BN, CN, DN, EN, FN>>,

Source§

fn from(data: P6<T, AN, BN, CN, DN, EN, FN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize> From<P7<T, AN, BN, CN, DN, EN, FN, GN>> for Msb<U>
where U: FromMsb<P7<T, AN, BN, CN, DN, EN, FN, GN>>,

Source§

fn from(data: P7<T, AN, BN, CN, DN, EN, FN, GN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize> From<P8<T, AN, BN, CN, DN, EN, FN, GN, HN>> for Msb<U>
where U: FromMsb<P8<T, AN, BN, CN, DN, EN, FN, GN, HN>>,

Source§

fn from(data: P8<T, AN, BN, CN, DN, EN, FN, GN, HN>) -> Self

Converts to this type from the input type.
Source§

impl<T, U, const AN: usize, const BN: usize, const CN: usize, const DN: usize, const EN: usize, const FN: usize, const GN: usize, const HN: usize, const IN: usize> From<P9<T, AN, BN, CN, DN, EN, FN, GN, HN, IN>> for Msb<U>
where U: FromMsb<P9<T, AN, BN, CN, DN, EN, FN, GN, HN, IN>>,

Source§

fn from(data: P9<T, AN, BN, CN, DN, EN, FN, GN, HN, IN>) -> Self

Converts to this type from the input type.
Source§

impl<T: PartialEq> PartialEq for Msb<T>

Source§

fn eq(&self, other: &Msb<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Eq> Eq for Msb<T>

Source§

impl<T> StructuralPartialEq for Msb<T>

Auto Trait Implementations§

§

impl<T> Freeze for Msb<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Msb<T>
where T: RefUnwindSafe,

§

impl<T> Send for Msb<T>
where T: Send,

§

impl<T> Sync for Msb<T>
where T: Sync,

§

impl<T> Unpin for Msb<T>
where T: Unpin,

§

impl<T> UnwindSafe for Msb<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsPrimitive<()> for T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> LsbInto<U> for T
where U: FromLsb<T>,

Source§

fn lsb_into(self) -> U

Source§

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

Source§

fn msb_into(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.