pub struct Sub {
pub from: Item,
pub to: SubTo,
pub before: Option<Item>,
pub not_before: Option<Item>,
pub after: Option<Item>,
pub not_after: Option<Item>,
pub group_count: usize,
pub reverse_run: Option<bool>,
}Fields§
§from: Item§to: SubTo§before: Option<Item>§not_before: Option<Item>§after: Option<Item>§not_after: Option<Item>§group_count: usizeNumber of capture groups in regex order (before, not_before, from, not_after, after).
reverse_run: Option<bool>Ruby reverse_run:: Some(true) skips the rule in the forward
direction and runs it in the reversed document (and vice versa).
The ISC grammar cannot express it; only Document::reverse
produces it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sub
impl RefUnwindSafe for Sub
impl Send for Sub
impl Sync for Sub
impl Unpin for Sub
impl UnsafeUnpin for Sub
impl UnwindSafe for Sub
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