Struct regex_literal::delimited::XRegex
source · pub struct XRegex {
pub literal: (u32, String),
pub data: ReSequence,
pub kind: LiteralForm,
}
Expand description
a collection of regular expression data artifacts
Fields§
§literal: (u32, String)
§data: ReSequence
§kind: LiteralForm
Implementations§
source§impl XRegex
impl XRegex
sourcepub fn new(re_text: &str, re_puncts: &[u8]) -> Result<Self, Error>
pub fn new(re_text: &str, re_puncts: &[u8]) -> Result<Self, Error>
XRegex constructor creates XRegex struct with a customised re_puncts
sourcepub fn get_regex(&mut self) -> Option<Regex>
pub fn get_regex(&mut self) -> Option<Regex>
get regex from XRegex struct. None is returned if it is not item kind.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XRegex
impl RefUnwindSafe for XRegex
impl Send for XRegex
impl Sync for XRegex
impl Unpin for XRegex
impl UnwindSafe for XRegex
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)