Struct SubspecificEpithet
pub struct SubspecificEpithet(/* private fields */);Expand description
A non-empty subspecific epithet.
Implementations§
§impl SubspecificEpithet
impl SubspecificEpithet
pub fn new(
value: impl AsRef<str>,
) -> Result<SubspecificEpithet, SpeciesNameError>
pub fn new( value: impl AsRef<str>, ) -> Result<SubspecificEpithet, SpeciesNameError>
Creates a subspecific epithet from non-empty text.
§Errors
Returns SpeciesNameError::Empty when the trimmed epithet is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the epithet and returns the owned string.
Trait Implementations§
§impl AsRef<str> for SubspecificEpithet
impl AsRef<str> for SubspecificEpithet
§impl Clone for SubspecificEpithet
impl Clone for SubspecificEpithet
§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 more§impl Debug for SubspecificEpithet
impl Debug for SubspecificEpithet
§impl Display for SubspecificEpithet
impl Display for SubspecificEpithet
§impl FromStr for SubspecificEpithet
impl FromStr for SubspecificEpithet
§type Err = SpeciesNameError
type Err = SpeciesNameError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<SubspecificEpithet, <SubspecificEpithet as FromStr>::Err>
fn from_str( value: &str, ) -> Result<SubspecificEpithet, <SubspecificEpithet as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for SubspecificEpithet
impl Hash for SubspecificEpithet
§impl Ord for SubspecificEpithet
impl Ord for SubspecificEpithet
§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
§impl PartialEq for SubspecificEpithet
impl PartialEq for SubspecificEpithet
§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