pub struct SubspecificEpithet(/* private fields */);Expand description
A non-empty subspecific epithet.
Implementations§
Source§impl SubspecificEpithet
impl SubspecificEpithet
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, SpeciesNameError>
pub fn new(value: impl AsRef<str>) -> Result<Self, SpeciesNameError>
Creates a subspecific 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 SubspecificEpithet
impl AsRef<str> for SubspecificEpithet
Source§impl Clone for SubspecificEpithet
impl Clone for SubspecificEpithet
Source§fn clone(&self) -> SubspecificEpithet
fn clone(&self) -> SubspecificEpithet
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 SubspecificEpithet
impl Debug for SubspecificEpithet
Source§impl Display for SubspecificEpithet
impl Display for SubspecificEpithet
Source§impl FromStr for SubspecificEpithet
impl FromStr for SubspecificEpithet
Source§impl Hash for SubspecificEpithet
impl Hash for SubspecificEpithet
Source§impl Ord for SubspecificEpithet
impl Ord for SubspecificEpithet
Source§fn cmp(&self, other: &SubspecificEpithet) -> Ordering
fn cmp(&self, other: &SubspecificEpithet) -> 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 SubspecificEpithet
impl PartialEq for SubspecificEpithet
Source§impl PartialOrd for SubspecificEpithet
impl PartialOrd for SubspecificEpithet
impl Eq for SubspecificEpithet
impl StructuralPartialEq for SubspecificEpithet
Auto Trait Implementations§
impl Freeze for SubspecificEpithet
impl RefUnwindSafe for SubspecificEpithet
impl Send for SubspecificEpithet
impl Sync for SubspecificEpithet
impl Unpin for SubspecificEpithet
impl UnsafeUnpin for SubspecificEpithet
impl UnwindSafe for SubspecificEpithet
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