pub struct i16le(/* private fields */);Expand description
The 16-bit little endian signed integer type.
Implementations§
Source§impl i16le
impl i16le
Sourcepub const fn new(value: i16) -> i16le
pub const fn new(value: i16) -> i16le
Convert a native byte order integer into an endianness specific integer.
Sourcepub fn set(&mut self, value: i16)
pub fn set(&mut self, value: i16)
Convert a native byte order integer and store it in this endianness specific integer.
Sourcepub const fn from_be_bytes(bytes: [u8; 2]) -> i16le
pub const fn from_be_bytes(bytes: [u8; 2]) -> i16le
Creates an integer value from its representation as a byte array in big endian.
Trait Implementations§
Source§impl BitAndAssign for i16le
impl BitAndAssign for i16le
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for i16le
impl BitOrAssign for i16le
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for i16le
impl BitXorAssign for i16le
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreimpl Copy for i16le
impl Eq for i16le
impl StructuralPartialEq for i16le
Auto Trait Implementations§
impl Freeze for i16le
impl RefUnwindSafe for i16le
impl Send for i16le
impl Sync for i16le
impl Unpin for i16le
impl UnwindSafe for i16le
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