pub struct Regex(/* private fields */);Implementations§
Source§impl Regex
impl Regex
pub fn new(data__255: RegexNode) -> Regex
pub fn found(&self, text__259: impl ToArcString) -> bool
pub fn find( &self, text__262: impl ToArcString, begin__547: Option<usize>, ) -> Result<Match>
pub fn replace( &self, text__266: impl ToArcString, format__267: Arc<dyn Fn(Match) -> Arc<String> + Send + Sync>, ) -> Arc<String>
pub fn split(&self, text__270: impl ToArcString) -> List<Arc<String>>
pub fn data(&self) -> RegexNode
Trait Implementations§
Source§impl AnyValueTrait for Regex
impl AnyValueTrait for Regex
Source§impl AsAnyValue for Regex
impl AsAnyValue for Regex
fn as_any_value(&self) -> AnyValue
Auto Trait Implementations§
impl Freeze for Regex
impl !RefUnwindSafe for Regex
impl Send for Regex
impl Sync for Regex
impl Unpin 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