pub struct ExtPortMask(/* private fields */);Expand description
External port mask for boards with independently switchable power outputs.
Implementations§
Source§impl ExtPortMask
impl ExtPortMask
pub const NONE: Self
pub const PA: Self
pub const PB1: Self
pub const PB2: Self
pub const PC1: Self
pub const PC2: Self
pub const USB: Self
pub const PWR485: Self
pub const PWRCAN: Self
pub const MAIN: Self
pub const ALL: Self
pub const fn from_bits(bits: u16) -> Self
pub const fn bits(self) -> u16
Trait Implementations§
Source§impl BitAnd for ExtPortMask
impl BitAnd for ExtPortMask
Source§impl BitAndAssign for ExtPortMask
impl BitAndAssign for ExtPortMask
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ExtPortMask
impl BitOr for ExtPortMask
Source§impl BitOrAssign for ExtPortMask
impl BitOrAssign for ExtPortMask
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for ExtPortMask
impl Clone for ExtPortMask
Source§fn clone(&self) -> ExtPortMask
fn clone(&self) -> ExtPortMask
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 ExtPortMask
impl Debug for ExtPortMask
Source§impl Default for ExtPortMask
impl Default for ExtPortMask
Source§impl PartialEq for ExtPortMask
impl PartialEq for ExtPortMask
Source§fn eq(&self, other: &ExtPortMask) -> bool
fn eq(&self, other: &ExtPortMask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExtPortMask
impl Eq for ExtPortMask
impl StructuralPartialEq for ExtPortMask
Auto Trait Implementations§
impl Freeze for ExtPortMask
impl RefUnwindSafe for ExtPortMask
impl Send for ExtPortMask
impl Sync for ExtPortMask
impl Unpin for ExtPortMask
impl UnsafeUnpin for ExtPortMask
impl UnwindSafe for ExtPortMask
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