pub struct StartsWith<'a>(/* private fields */);
Expand description
Regex syntax for matching the pattern of the input regex at the start of the searched text.
§Example
use readable_regex::solvers::StartsWith;
use readable_regex::ReadableRe::Raw;
let query = StartsWith::new(Raw("abc"));
assert_eq!(query.to_string(), "^abc");
Implementations§
Source§impl<'a> StartsWith<'a>
impl<'a> StartsWith<'a>
pub fn new(re: ReadableRe<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for StartsWith<'a>
impl<'a> Clone for StartsWith<'a>
Source§fn clone(&self) -> StartsWith<'a>
fn clone(&self) -> StartsWith<'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 StartsWith<'a>
impl<'a> Display for StartsWith<'a>
Source§impl<'a> FromIterator<ReadableRe<'a>> for StartsWith<'a>
impl<'a> FromIterator<ReadableRe<'a>> for StartsWith<'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 StartsWith<'a>
impl<'a> RefUnwindSafe for StartsWith<'a>
impl<'a> Send for StartsWith<'a>
impl<'a> Sync for StartsWith<'a>
impl<'a> Unpin for StartsWith<'a>
impl<'a> UnwindSafe for StartsWith<'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