pub struct ByteMarker<'a> { /* private fields */ }Implementations§
Source§impl<'a> ByteMarker<'a>
impl<'a> ByteMarker<'a>
pub fn with_defaults() -> Self
pub fn new(mark: &'a str, tail: &'a str) -> Self
pub fn unmark<'b>( &self, bytes: &'b [u8], ) -> Option<(Vec<&'b [u8]>, Option<&'b [u8]>)>
pub fn mark_bytes(&self, bytes: &mut Vec<u8>)
pub fn erase_mark(&self, bytes: &mut Vec<u8>)
pub fn mark_tail(&self, bytes: &mut Vec<u8>)
pub fn erase_tail(&self, bytes: &mut Vec<u8>)
pub fn concat_byte(first: &[u8], second: &[u8]) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl<'a> Freeze for ByteMarker<'a>
impl<'a> RefUnwindSafe for ByteMarker<'a>
impl<'a> Send for ByteMarker<'a>
impl<'a> Sync for ByteMarker<'a>
impl<'a> Unpin for ByteMarker<'a>
impl<'a> UnwindSafe for ByteMarker<'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