pub struct BorrowedBinaryPattern<'a> { /* private fields */ }Expand description
An implementation of the BinaryPattern interface that borrows the Atoms and byte sequence array.
This struct is primarily used alongside the [bmatcher_proc::pattern] macro to generate patterns at runtime.
Implementations§
Trait Implementations§
Source§impl BinaryPattern for BorrowedBinaryPattern<'_>
impl BinaryPattern for BorrowedBinaryPattern<'_>
Source§fn byte_sequence(&self) -> &[u8]
fn byte_sequence(&self) -> &[u8]
Retrieves the byte sequence referenced by the atoms. Read more
Source§fn save_len(&self) -> usize
fn save_len(&self) -> usize
Returns an upper bound for the length of the save stack. Read more
Source§fn cursor_len(&self) -> usize
fn cursor_len(&self) -> usize
Returns an upper bound for the length of the cursor stack. Read more
Source§impl<'a> Clone for BorrowedBinaryPattern<'a>
impl<'a> Clone for BorrowedBinaryPattern<'a>
Source§fn clone(&self) -> BorrowedBinaryPattern<'a>
fn clone(&self) -> BorrowedBinaryPattern<'a>
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<'a> Debug for BorrowedBinaryPattern<'a>
impl<'a> Debug for BorrowedBinaryPattern<'a>
impl<'a> Copy for BorrowedBinaryPattern<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorrowedBinaryPattern<'a>
impl<'a> RefUnwindSafe for BorrowedBinaryPattern<'a>
impl<'a> Send for BorrowedBinaryPattern<'a>
impl<'a> Sync for BorrowedBinaryPattern<'a>
impl<'a> Unpin for BorrowedBinaryPattern<'a>
impl<'a> UnwindSafe for BorrowedBinaryPattern<'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