pub struct SelBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> SelBuffer<T>
impl<T: AsRef<[u8]>> SelBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
pub fn set_offshift(&mut self, value: u8)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
pub fn set_offmask(&mut self, value: u16)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> SelBuffer<T>
pub fn set_offoff(&mut self, value: u16)
source§impl<T: AsRef<[u8]>> SelBuffer<T>
impl<T: AsRef<[u8]>> SelBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: PartialEq> PartialEq<SelBuffer<T>> for SelBuffer<T>
impl<T: PartialEq> PartialEq<SelBuffer<T>> for SelBuffer<T>
impl<T: Copy> Copy for SelBuffer<T>
impl<T: Eq> Eq for SelBuffer<T>
impl<T> StructuralEq for SelBuffer<T>
impl<T> StructuralPartialEq for SelBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SelBuffer<T>where T: RefUnwindSafe,
impl<T> Send for SelBuffer<T>where T: Send,
impl<T> Sync for SelBuffer<T>where T: Sync,
impl<T> Unpin for SelBuffer<T>where T: Unpin,
impl<T> UnwindSafe for SelBuffer<T>where T: UnwindSafe,
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