pub struct Pattern {
pub units: Vec<Unit>,
}Expand description
One record: an anchored pattern.
Fields§
§units: Vec<Unit>Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn replacement(&self) -> Vec<u8> ⓘ
pub fn replacement(&self) -> Vec<u8> ⓘ
What it will hold: each sub-unit in place of the unit that holds it.
Sourcepub fn is_assertion(&self) -> bool
pub fn is_assertion(&self) -> bool
A record with no substitution: its search text must be present once.
Trait Implementations§
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Forget for Pattern
impl Freeze for Pattern
impl Move for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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