Enum Pwrdnswtch
#[repr(u8)]pub enum Pwrdnswtch {
On = 0,
Off = 1,
}Variants§
Implementations§
§impl Pwrdnswtch
impl Pwrdnswtch
pub const fn from_bits(val: u8) -> Pwrdnswtch
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Pwrdnswtch
impl Clone for Pwrdnswtch
§fn clone(&self) -> Pwrdnswtch
fn clone(&self) -> Pwrdnswtch
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 moreimpl Copy for Pwrdnswtch
impl Eq for Pwrdnswtch
§impl From<u8> for Pwrdnswtch
impl From<u8> for Pwrdnswtch
§fn from(val: u8) -> Pwrdnswtch
fn from(val: u8) -> Pwrdnswtch
Converts to this type from the input type.
§impl Ord for Pwrdnswtch
impl Ord for Pwrdnswtch
§fn cmp(&self, other: &Pwrdnswtch) -> Ordering
fn cmp(&self, other: &Pwrdnswtch) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl PartialEq for Pwrdnswtch
impl PartialEq for Pwrdnswtch
§impl PartialOrd for Pwrdnswtch
impl PartialOrd for Pwrdnswtch
impl StructuralPartialEq for Pwrdnswtch
Auto Trait Implementations§
impl Forget for Pwrdnswtch
impl Freeze for Pwrdnswtch
impl Move for Pwrdnswtch
impl RefUnwindSafe for Pwrdnswtch
impl Send for Pwrdnswtch
impl Sync for Pwrdnswtch
impl Unpin for Pwrdnswtch
impl UnsafeUnpin for Pwrdnswtch
impl UnwindSafe for Pwrdnswtch
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