Struct AtmosphericCondition
pub struct AtmosphericCondition(/* private fields */);Expand description
A descriptive non-empty atmospheric condition label.
Implementations§
§impl AtmosphericCondition
impl AtmosphericCondition
pub fn new(
value: impl AsRef<str>,
) -> Result<AtmosphericCondition, AtmosphericConditionError>
pub fn new( value: impl AsRef<str>, ) -> Result<AtmosphericCondition, AtmosphericConditionError>
Creates an atmospheric condition label from non-empty text.
§Errors
Returns AtmosphericConditionError::Empty when the label is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the condition and returns the owned string.
Trait Implementations§
§impl AsRef<str> for AtmosphericCondition
impl AsRef<str> for AtmosphericCondition
§impl Clone for AtmosphericCondition
impl Clone for AtmosphericCondition
§fn clone(&self) -> AtmosphericCondition
fn clone(&self) -> AtmosphericCondition
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 AtmosphericCondition
impl Debug for AtmosphericCondition
§impl Display for AtmosphericCondition
impl Display for AtmosphericCondition
§impl FromStr for AtmosphericCondition
impl FromStr for AtmosphericCondition
§type Err = AtmosphericConditionError
type Err = AtmosphericConditionError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AtmosphericCondition, <AtmosphericCondition as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AtmosphericCondition, <AtmosphericCondition as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AtmosphericCondition
impl Hash for AtmosphericCondition
§impl Ord for AtmosphericCondition
impl Ord for AtmosphericCondition
§fn cmp(&self, other: &AtmosphericCondition) -> Ordering
fn cmp(&self, other: &AtmosphericCondition) -> 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 AtmosphericCondition
impl PartialEq for AtmosphericCondition
§impl PartialOrd for AtmosphericCondition
impl PartialOrd for AtmosphericCondition
impl Eq for AtmosphericCondition
impl StructuralPartialEq for AtmosphericCondition
Auto Trait Implementations§
impl Freeze for AtmosphericCondition
impl RefUnwindSafe for AtmosphericCondition
impl Send for AtmosphericCondition
impl Sync for AtmosphericCondition
impl Unpin for AtmosphericCondition
impl UnsafeUnpin for AtmosphericCondition
impl UnwindSafe for AtmosphericCondition
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