pub struct StartsAndEndsWith<'a>(/* private fields */);Expand description
Regex syntax for matching the pattern of the input regex at the start and end of the searched text. (That is, the pattern must match the complete searched text.)
§Example
use readable_regex::solvers::StartsAndEndsWith;
use readable_regex::ReadableRe::Raw;
let query = StartsAndEndsWith::new(Raw("abc"));
assert_eq!(query.to_string(), "^abc$");Implementations§
Source§impl<'a> StartsAndEndsWith<'a>
impl<'a> StartsAndEndsWith<'a>
pub fn new(re: ReadableRe<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for StartsAndEndsWith<'a>
impl<'a> Clone for StartsAndEndsWith<'a>
Source§fn clone(&self) -> StartsAndEndsWith<'a>
fn clone(&self) -> StartsAndEndsWith<'a>
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 moreSource§impl<'a> Display for StartsAndEndsWith<'a>
impl<'a> Display for StartsAndEndsWith<'a>
Source§impl<'a> FromIterator<ReadableRe<'a>> for StartsAndEndsWith<'a>
impl<'a> FromIterator<ReadableRe<'a>> for StartsAndEndsWith<'a>
Source§fn from_iter<T: IntoIterator<Item = ReadableRe<'a>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ReadableRe<'a>>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<'a> Freeze for StartsAndEndsWith<'a>
impl<'a> RefUnwindSafe for StartsAndEndsWith<'a>
impl<'a> Send for StartsAndEndsWith<'a>
impl<'a> Sync for StartsAndEndsWith<'a>
impl<'a> Unpin for StartsAndEndsWith<'a>
impl<'a> UnwindSafe for StartsAndEndsWith<'a>
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