Struct PopulationName
pub struct PopulationName(/* private fields */);Implementations§
§impl PopulationName
impl PopulationName
pub fn new(
value: impl AsRef<str>,
) -> Result<PopulationName, PopulationTextError>
pub fn new( value: impl AsRef<str>, ) -> Result<PopulationName, PopulationTextError>
§Errors
Returns PopulationTextError::Empty when value is blank.
pub fn as_str(&self) -> &str
Trait Implementations§
§impl Clone for PopulationName
impl Clone for PopulationName
§fn clone(&self) -> PopulationName
fn clone(&self) -> PopulationName
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 PopulationName
impl Debug for PopulationName
§impl Display for PopulationName
impl Display for PopulationName
§impl FromStr for PopulationName
impl FromStr for PopulationName
§type Err = PopulationTextError
type Err = PopulationTextError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<PopulationName, <PopulationName as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PopulationName, <PopulationName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PopulationName
impl Hash for PopulationName
§impl Ord for PopulationName
impl Ord for PopulationName
§impl PartialEq for PopulationName
impl PartialEq for PopulationName
§impl PartialOrd for PopulationName
impl PartialOrd for PopulationName
impl Eq for PopulationName
impl StructuralPartialEq for PopulationName
Auto Trait Implementations§
impl Freeze for PopulationName
impl RefUnwindSafe for PopulationName
impl Send for PopulationName
impl Sync for PopulationName
impl Unpin for PopulationName
impl UnsafeUnpin for PopulationName
impl UnwindSafe for PopulationName
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