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