pub struct ByteMsgMut<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ByteMsgMut<'a>
impl<'a> ByteMsgMut<'a>
pub fn typ(&mut self) -> Option<&mut [u8; 2]>
pub fn len(&mut self) -> Option<&mut [u8; 2]>
pub fn tid(&mut self) -> Option<&mut [u8; 16]>
pub fn attrs(&mut self) -> Option<&mut [u8]>
pub fn attrs_iter(&mut self) -> ByteAttrIterMut<'_> ⓘ
pub fn add_attr( &mut self, typ: &[u8; 2], len: &[u8; 2], val: &[u8], ) -> Option<()>
pub fn add_attr2<F: Fn(&mut [u8; 2], &mut [u8; 2], &mut [u8]) -> Option<usize>>( &mut self, callback: F, ) -> Option<()>
pub fn as_bytes(&mut self) -> &mut [u8]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ByteMsgMut<'a>
impl<'a> RefUnwindSafe for ByteMsgMut<'a>
impl<'a> Send for ByteMsgMut<'a>
impl<'a> Sync for ByteMsgMut<'a>
impl<'a> Unpin for ByteMsgMut<'a>
impl<'a> !UnwindSafe for ByteMsgMut<'a>
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