pub struct props_power16(/* private fields */);Implementations§
Source§impl props_power16
impl props_power16
pub const fn new() -> Self
pub const fn encode(self) -> u8
pub const fn decode(n: u8) -> Self
pub const fn power(self) -> prop_power
pub const fn with_power(self, power: prop_power) -> Self
Trait Implementations§
Source§impl Clone for props_power16
impl Clone for props_power16
Source§fn clone(&self) -> props_power16
fn clone(&self) -> props_power16
Returns a copy 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 moreSource§impl Default for props_power16
impl Default for props_power16
Source§impl Hash for props_power16
impl Hash for props_power16
Source§impl PartialEq for props_power16
impl PartialEq for props_power16
impl Copy for props_power16
impl Eq for props_power16
impl StructuralPartialEq for props_power16
Auto Trait Implementations§
impl Freeze for props_power16
impl RefUnwindSafe for props_power16
impl Send for props_power16
impl Sync for props_power16
impl Unpin for props_power16
impl UnwindSafe for props_power16
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