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<MotifPattern, MotifValueError>
pub fn new(value: impl AsRef<str>) -> Result<MotifPattern, 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 · 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§type Err = MotifValueError
type Err = MotifValueError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<MotifPattern, <MotifPattern as FromStr>::Err>
fn from_str(value: &str) -> Result<MotifPattern, <MotifPattern as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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 · 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§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