pub struct RegexPattern {
pub pattern: String,
}Expand description
A reusable owned regex pattern wrapper.
Fields§
§pattern: StringTrait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegexPattern
impl Debug for RegexPattern
Source§impl Default for RegexPattern
impl Default for RegexPattern
Source§fn default() -> RegexPattern
fn default() -> RegexPattern
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegexPattern
impl PartialEq for RegexPattern
Source§fn eq(&self, other: &RegexPattern) -> bool
fn eq(&self, other: &RegexPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RegexPattern
impl StructuralPartialEq for RegexPattern
Auto Trait Implementations§
impl Freeze for RegexPattern
impl RefUnwindSafe for RegexPattern
impl Send for RegexPattern
impl Sync for RegexPattern
impl Unpin for RegexPattern
impl UnsafeUnpin 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