pub struct i20(/* private fields */);
Expand description
An unsigned integer which contains 20 bits
Implementations§
Trait Implementations§
Source§impl BitAndAssign for i20
impl BitAndAssign for i20
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for i20
impl BitOrAssign for i20
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for i20
impl BitXorAssign for i20
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl<'de> Deserialize<'de> for i20
impl<'de> Deserialize<'de> for i20
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FieldStorage for i20
impl FieldStorage for i20
Source§type StoredType = u32
type StoredType = u32
The type this field stores as
Source§fn inner_raw(self) -> Self::StoredType
fn inner_raw(self) -> Self::StoredType
Get the raw representation of this value
Source§impl Num for i20
impl Num for i20
type FromStrRadixErr = ()
Source§fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36
). Read moreSource§impl Ord for i20
impl Ord for i20
Source§impl PartialOrd for i20
impl PartialOrd for i20
Source§impl ShlAssign<usize> for i20
impl ShlAssign<usize> for i20
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the
<<=
operation. Read moreSource§impl ShrAssign<usize> for i20
impl ShrAssign<usize> for i20
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the
>>=
operation. Read moreSource§impl<P> ValidCheck<P> for i20
impl<P> ValidCheck<P> for i20
Source§const ALWAYS_VALID: bool = true
const ALWAYS_VALID: bool = true
Set this to true if, at compile-time, we can tell that all bit
representations which contain the appropriate number of bits are valid
representations of this type
impl Copy for i20
impl Eq for i20
impl StructuralPartialEq for i20
Auto Trait Implementations§
impl Freeze for i20
impl RefUnwindSafe for i20
impl Send for i20
impl Sync for i20
impl Unpin for i20
impl UnwindSafe for i20
Blanket Implementations§
Source§impl<T> BitStructZero for Twhere
T: Zero,
impl<T> BitStructZero for Twhere
T: Zero,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more