pub struct OwnedBinaryPattern { /* private fields */ }Expand description
An implementation of the BinaryPattern interface that allocates a Vec for the Atoms and the byte sequence.
This struct is primarily used with crate::compiler::parse_pattern to parse binary patterns at runtime.
Implementations§
Trait Implementations§
Source§impl BinaryPattern for OwnedBinaryPattern
impl BinaryPattern for OwnedBinaryPattern
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 Debug for OwnedBinaryPattern
impl Debug for OwnedBinaryPattern
Source§impl Default for OwnedBinaryPattern
impl Default for OwnedBinaryPattern
Source§fn default() -> OwnedBinaryPattern
fn default() -> OwnedBinaryPattern
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OwnedBinaryPattern
impl RefUnwindSafe for OwnedBinaryPattern
impl Send for OwnedBinaryPattern
impl Sync for OwnedBinaryPattern
impl Unpin for OwnedBinaryPattern
impl UnwindSafe for OwnedBinaryPattern
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