Struct DynamicLevel
pub struct DynamicLevel(/* private fields */);Implementations§
§impl DynamicLevel
impl DynamicLevel
pub fn new(value: u8) -> Result<DynamicLevel, DynamicsError>
pub const fn value(self) -> u8
Trait Implementations§
§impl Clone for DynamicLevel
impl Clone for DynamicLevel
§fn clone(&self) -> DynamicLevel
fn clone(&self) -> DynamicLevel
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 DynamicLevel
impl Debug for DynamicLevel
§impl Display for DynamicLevel
impl Display for DynamicLevel
§impl FromStr for DynamicLevel
impl FromStr for DynamicLevel
§type Err = DynamicsError
type Err = DynamicsError
The associated error which can be returned from parsing.
§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 more§impl Hash for DynamicLevel
impl Hash for DynamicLevel
§impl Ord for DynamicLevel
impl Ord for DynamicLevel
§impl PartialEq for DynamicLevel
impl PartialEq for DynamicLevel
§impl PartialOrd for DynamicLevel
impl PartialOrd for DynamicLevel
§impl TryFrom<u8> for DynamicLevel
impl TryFrom<u8> for DynamicLevel
§type Error = DynamicsError
type Error = DynamicsError
The type returned in the event of a conversion error.
§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