Enum jj_lib::revset::StringPattern
source · pub enum StringPattern {
Exact(String),
Substring(String),
}
Expand description
Pattern to be tested against string property like commit description or branch name.
Variants§
Exact(String)
Matches strings exactly equal to string
.
Substring(String)
Matches strings that contain substring
.
Implementations§
source§impl StringPattern
impl StringPattern
Trait Implementations§
source§impl Clone for StringPattern
impl Clone for StringPattern
source§fn clone(&self) -> StringPattern
fn clone(&self) -> StringPattern
Returns a copy 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 Debug for StringPattern
impl Debug for StringPattern
source§impl PartialEq for StringPattern
impl PartialEq for StringPattern
source§fn eq(&self, other: &StringPattern) -> bool
fn eq(&self, other: &StringPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringPattern
impl StructuralEq for StringPattern
impl StructuralPartialEq for StringPattern
Auto Trait Implementations§
impl RefUnwindSafe for StringPattern
impl Send for StringPattern
impl Sync for StringPattern
impl Unpin for StringPattern
impl UnwindSafe for StringPattern
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