pub struct PressureSystemStrength(/* private fields */);Expand description
A non-empty descriptive pressure system strength label.
Implementations§
Source§impl PressureSystemStrength
impl PressureSystemStrength
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, PressureSystemValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, PressureSystemValueError>
Creates a pressure system strength label from non-empty text.
§Errors
Returns PressureSystemValueError::EmptyPressureSystemStrength when the label is empty.
Trait Implementations§
Source§impl Clone for PressureSystemStrength
impl Clone for PressureSystemStrength
Source§fn clone(&self) -> PressureSystemStrength
fn clone(&self) -> PressureSystemStrength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PressureSystemStrength
impl Debug for PressureSystemStrength
Source§impl Display for PressureSystemStrength
impl Display for PressureSystemStrength
Source§impl FromStr for PressureSystemStrength
impl FromStr for PressureSystemStrength
Source§impl Hash for PressureSystemStrength
impl Hash for PressureSystemStrength
Source§impl Ord for PressureSystemStrength
impl Ord for PressureSystemStrength
Source§fn cmp(&self, other: &PressureSystemStrength) -> Ordering
fn cmp(&self, other: &PressureSystemStrength) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for PressureSystemStrength
impl PartialEq for PressureSystemStrength
Source§fn eq(&self, other: &PressureSystemStrength) -> bool
fn eq(&self, other: &PressureSystemStrength) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PressureSystemStrength
impl PartialOrd for PressureSystemStrength
impl Eq for PressureSystemStrength
impl StructuralPartialEq for PressureSystemStrength
Auto Trait Implementations§
impl Freeze for PressureSystemStrength
impl RefUnwindSafe for PressureSystemStrength
impl Send for PressureSystemStrength
impl Sync for PressureSystemStrength
impl Unpin for PressureSystemStrength
impl UnsafeUnpin for PressureSystemStrength
impl UnwindSafe for PressureSystemStrength
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