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