pub struct SpecificEpithet(/* private fields */);Expand description
A non-empty specific epithet.
Implementations§
Source§impl SpecificEpithet
impl SpecificEpithet
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, SpeciesNameError>
pub fn new(value: impl AsRef<str>) -> Result<Self, SpeciesNameError>
Creates a specific epithet from non-empty text.
§Errors
Returns SpeciesNameError::Empty when the trimmed epithet is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the epithet and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for SpecificEpithet
impl AsRef<str> for SpecificEpithet
Source§impl Clone for SpecificEpithet
impl Clone for SpecificEpithet
Source§fn clone(&self) -> SpecificEpithet
fn clone(&self) -> SpecificEpithet
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 SpecificEpithet
impl Debug for SpecificEpithet
Source§impl Display for SpecificEpithet
impl Display for SpecificEpithet
Source§impl FromStr for SpecificEpithet
impl FromStr for SpecificEpithet
Source§impl Hash for SpecificEpithet
impl Hash for SpecificEpithet
Source§impl Ord for SpecificEpithet
impl Ord for SpecificEpithet
Source§fn cmp(&self, other: &SpecificEpithet) -> Ordering
fn cmp(&self, other: &SpecificEpithet) -> 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 SpecificEpithet
impl PartialEq for SpecificEpithet
Source§impl PartialOrd for SpecificEpithet
impl PartialOrd for SpecificEpithet
impl Eq for SpecificEpithet
impl StructuralPartialEq for SpecificEpithet
Auto Trait Implementations§
impl Freeze for SpecificEpithet
impl RefUnwindSafe for SpecificEpithet
impl Send for SpecificEpithet
impl Sync for SpecificEpithet
impl Unpin for SpecificEpithet
impl UnsafeUnpin for SpecificEpithet
impl UnwindSafe for SpecificEpithet
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