pub struct RegexPattern { /* private fields */ }
Expand description
Regex use to try to convert string to number
Implementations§
Source§impl RegexPattern
impl RegexPattern
pub fn new( type_parsing: &TypeParsing, culture_settings: Option<NumberCultureSettings>, ) -> Result<RegexPattern, ConversionError>
Sourcepub fn is_match(&self, text: &str) -> bool
pub fn is_match(&self, text: &str) -> bool
Return if the string number has been matched by the regex
pub fn get_type_parsing(&self) -> &TypeParsing
pub fn get_regex(&self) -> Regex
Trait Implementations§
Source§impl Clone for RegexPattern
impl Clone for RegexPattern
Source§fn clone(&self) -> RegexPattern
fn clone(&self) -> RegexPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RegexPattern
impl RefUnwindSafe for RegexPattern
impl Send for RegexPattern
impl Sync for RegexPattern
impl Unpin for RegexPattern
impl UnwindSafe for RegexPattern
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