pub struct UInt12(/* private fields */);Implementations§
Source§impl UInt12
impl UInt12
pub fn new(val: u16) -> Result<UInt12, UInt12Error>
pub fn to_u16(self) -> u16
pub fn to_usize(self) -> usize
pub fn max() -> UInt12
pub fn serialize_packed(buffer: &mut impl BufMut, args: &[UInt12])
pub fn parse_packed( buffer: &mut impl Buf, expected_count: usize, ) -> Result<Vec<UInt12>, UInt12Error>
Trait Implementations§
Source§impl AddAssign for UInt12
impl AddAssign for UInt12
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl ConstEncodedSize for UInt12
impl ConstEncodedSize for UInt12
fn encoded_size() -> usize
Source§impl PartialOrd for UInt12
impl PartialOrd for UInt12
Source§impl SubAssign for UInt12
impl SubAssign for UInt12
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for UInt12
impl StructuralPartialEq for UInt12
Auto Trait Implementations§
impl Freeze for UInt12
impl RefUnwindSafe for UInt12
impl Send for UInt12
impl Sync for UInt12
impl Unpin for UInt12
impl UnwindSafe for UInt12
Blanket Implementations§
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