pub struct Regex {Show 15 fields
prog: Vec<Inst>,
pub ngroups: usize,
pub ignorecase: bool,
pub multiline: bool,
pub dotall: bool,
pub global: bool,
pub sticky: bool,
pub has_indices: bool,
pub unicode: bool,
pub unicode_sets: bool,
nloops: usize,
ncounters: usize,
pub source: String,
pub flags: String,
pub group_names: Vec<(String, usize)>,
}Fields§
§prog: Vec<Inst>§ngroups: usize§ignorecase: bool§multiline: bool§dotall: bool§global: bool§sticky: bool§has_indices: boold(hasIndices)フラグ。
unicode: bool§unicode_sets: bool§nloops: usize§ncounters: usize§source: String§flags: String§group_names: Vec<(String, usize)>Implementations§
Source§impl Regex
impl Regex
Sourcepub fn find_exact_at(&self, subject: &[char], start: usize) -> Option<Match>
pub fn find_exact_at(&self, subject: &[char], start: usize) -> Option<Match>
y(sticky)フラグ用: start の位置でのみマッチを試みる(前方探索しない)。
fn make_subject<'a>( &self, subject: &'a [char], ) -> (Subject<'a>, Option<Vec<usize>>)
fn try_match_at_buf( &self, subject: &Subject<'_>, sp: usize, caps: &mut Vec<isize>, stash: &mut Vec<isize>, map: Option<&[usize]>, ) -> Option<Match>
fn run( &self, pc: usize, s: &Subject<'_>, sp: usize, caps: &mut Vec<isize>, budget: &mut u32, stash: &mut Vec<isize>, ) -> bool
Auto Trait Implementations§
impl Freeze for Regex
impl RefUnwindSafe for Regex
impl Send for Regex
impl Sync for Regex
impl Unpin for Regex
impl UnsafeUnpin for Regex
impl UnwindSafe for Regex
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