Struct stringmatch::StringMatch
source · [−]pub struct StringMatch { /* private fields */ }
Implementations
sourceimpl StringMatch
impl StringMatch
pub fn new<S>(text: S) -> Self where
S: Into<String>,
pub fn is_full_match(&self) -> bool
pub fn is_partial_match(&self) -> bool
pub fn is_word_match(&self) -> bool
pub fn is_case_sensitive(&self) -> bool
pub fn partial(self) -> Self
pub fn full(self) -> Self
pub fn word(self) -> Self
pub fn case_insensitive(self) -> Self
pub fn case_sensitive(self) -> Self
Trait Implementations
sourceimpl Clone for StringMatch
impl Clone for StringMatch
sourcefn clone(&self) -> StringMatch
fn clone(&self) -> StringMatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StringMatch
impl Debug for StringMatch
sourceimpl<S> From<S> for StringMatch where
S: Into<String>,
impl<S> From<S> for StringMatch where
S: Into<String>,
sourceimpl Hash for StringMatch
impl Hash for StringMatch
sourceimpl PartialEq<StringMatch> for StringMatch
impl PartialEq<StringMatch> for StringMatch
sourcefn eq(&self, other: &StringMatch) -> bool
fn eq(&self, other: &StringMatch) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StringMatch) -> bool
fn ne(&self, other: &StringMatch) -> bool
This method tests for !=
.
impl Eq for StringMatch
impl StructuralEq for StringMatch
impl StructuralPartialEq for StringMatch
Auto Trait Implementations
impl RefUnwindSafe for StringMatch
impl Send for StringMatch
impl Sync for StringMatch
impl Unpin for StringMatch
impl UnwindSafe for StringMatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more