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