struct UnalignedU16Slice {
    ptr: *const u8,
    len: usize,
}Fields§
§ptr: *const u8§len: usizeImplementations§
Source§impl UnalignedU16Slice
 
impl UnalignedU16Slice
Sourcepub unsafe fn new(ptr: *const u8, len: usize) -> UnalignedU16Slice
 
pub unsafe fn new(ptr: *const u8, len: usize) -> UnalignedU16Slice
Safety: ptr must be valid for reading 2*len bytes
pub fn trim_last(&mut self)
pub fn at(&self, i: usize) -> u16
pub fn len(&self) -> usize
pub fn tail(&self, from: usize) -> UnalignedU16Slice
fn copy_bmp_to<E: Endian>(&self, other: &mut [u16]) -> Option<(u16, usize)>
Trait Implementations§
Source§impl Clone for UnalignedU16Slice
 
impl Clone for UnalignedU16Slice
Source§fn clone(&self) -> UnalignedU16Slice
 
fn clone(&self) -> UnalignedU16Slice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for UnalignedU16Slice
 
impl Debug for UnalignedU16Slice
impl Copy for UnalignedU16Slice
Auto Trait Implementations§
impl Freeze for UnalignedU16Slice
impl RefUnwindSafe for UnalignedU16Slice
impl !Send for UnalignedU16Slice
impl !Sync for UnalignedU16Slice
impl Unpin for UnalignedU16Slice
impl UnwindSafe for UnalignedU16Slice
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