pub struct MotifPattern(/* private fields */);Expand description
A non-empty plain motif pattern.
Implementations§
Source§impl MotifPattern
impl MotifPattern
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, MotifValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, MotifValueError>
Creates a motif pattern from non-empty plain text.
The pattern is stored descriptively. It is not treated as a regex or search expression.
§Errors
Returns MotifValueError::Empty when the trimmed pattern is empty.
Trait Implementations§
Source§impl Clone for MotifPattern
impl Clone for MotifPattern
Source§fn clone(&self) -> MotifPattern
fn clone(&self) -> MotifPattern
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 MotifPattern
impl Debug for MotifPattern
Source§impl Display for MotifPattern
impl Display for MotifPattern
Source§impl FromStr for MotifPattern
impl FromStr for MotifPattern
Source§impl Hash for MotifPattern
impl Hash for MotifPattern
Source§impl Ord for MotifPattern
impl Ord for MotifPattern
Source§fn cmp(&self, other: &MotifPattern) -> Ordering
fn cmp(&self, other: &MotifPattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MotifPattern
impl PartialEq for MotifPattern
Source§fn eq(&self, other: &MotifPattern) -> bool
fn eq(&self, other: &MotifPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MotifPattern
impl PartialOrd for MotifPattern
impl Eq for MotifPattern
impl StructuralPartialEq for MotifPattern
Auto Trait Implementations§
impl Freeze for MotifPattern
impl RefUnwindSafe for MotifPattern
impl Send for MotifPattern
impl Sync for MotifPattern
impl Unpin for MotifPattern
impl UnsafeUnpin for MotifPattern
impl UnwindSafe for MotifPattern
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