Struct encoding_rs::handles::UnalignedU16Slice
source · struct UnalignedU16Slice {
ptr: *const u8,
len: usize,
}
Fields§
§ptr: *const u8
§len: usize
Implementations§
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 copy 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