pub struct DynamicLevel(/* private fields */);Implementations§
Source§impl DynamicLevel
impl DynamicLevel
pub fn new(value: u8) -> Result<DynamicLevel, DynamicsError>
pub const fn value(self) -> u8
Trait Implementations§
Source§impl Clone for DynamicLevel
impl Clone for DynamicLevel
Source§fn clone(&self) -> DynamicLevel
fn clone(&self) -> DynamicLevel
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 DynamicLevel
impl Debug for DynamicLevel
Source§impl Display for DynamicLevel
impl Display for DynamicLevel
Source§impl FromStr for DynamicLevel
impl FromStr for DynamicLevel
Source§type Err = DynamicsError
type Err = DynamicsError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<DynamicLevel, <DynamicLevel as FromStr>::Err>
fn from_str(value: &str) -> Result<DynamicLevel, <DynamicLevel as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DynamicLevel
impl Hash for DynamicLevel
Source§impl Ord for DynamicLevel
impl Ord for DynamicLevel
Source§fn cmp(&self, other: &DynamicLevel) -> Ordering
fn cmp(&self, other: &DynamicLevel) -> 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 DynamicLevel
impl PartialEq for DynamicLevel
Source§fn eq(&self, other: &DynamicLevel) -> bool
fn eq(&self, other: &DynamicLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DynamicLevel
impl PartialOrd for DynamicLevel
Source§impl TryFrom<u8> for DynamicLevel
impl TryFrom<u8> for DynamicLevel
Source§type Error = DynamicsError
type Error = DynamicsError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u8,
) -> Result<DynamicLevel, <DynamicLevel as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<DynamicLevel, <DynamicLevel as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for DynamicLevel
impl Eq for DynamicLevel
impl StructuralPartialEq for DynamicLevel
Auto Trait Implementations§
impl Freeze for DynamicLevel
impl RefUnwindSafe for DynamicLevel
impl Send for DynamicLevel
impl Sync for DynamicLevel
impl Unpin for DynamicLevel
impl UnsafeUnpin for DynamicLevel
impl UnwindSafe for DynamicLevel
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