pub struct DeviceAddress10(/* private fields */);Available on crate feature
i2c only.Expand description
A 10-bit device address.
Implementations§
Source§impl DeviceAddress10
impl DeviceAddress10
Sourcepub const fn new(address: u16) -> Self
pub const fn new(address: u16) -> Self
Constructs a new DeviceAddress10 from a specified value.
To ensure the provided value is a valid 10-bit address, the value is masked
with 0b1111111111.
Sourcepub const fn into_inner(self) -> u16
pub const fn into_inner(self) -> u16
Consumes self and returns the inner value.
Trait Implementations§
Source§impl Clone for DeviceAddress10
impl Clone for DeviceAddress10
Source§fn clone(&self) -> DeviceAddress10
fn clone(&self) -> DeviceAddress10
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 DeviceAddress10
Source§impl Debug for DeviceAddress10
impl Debug for DeviceAddress10
Source§impl Deref for DeviceAddress10
impl Deref for DeviceAddress10
Source§impl DeviceAddress for DeviceAddress10
impl DeviceAddress for DeviceAddress10
Source§impl Display for DeviceAddress10
impl Display for DeviceAddress10
impl Eq for DeviceAddress10
Source§impl From<DeviceAddress7> for DeviceAddress10
impl From<DeviceAddress7> for DeviceAddress10
Source§fn from(value: DeviceAddress7) -> Self
fn from(value: DeviceAddress7) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DeviceAddress10
impl From<u8> for DeviceAddress10
Source§impl From<u16> for DeviceAddress10
impl From<u16> for DeviceAddress10
Source§impl Ord for DeviceAddress10
impl Ord for DeviceAddress10
Source§fn cmp(&self, other: &DeviceAddress10) -> Ordering
fn cmp(&self, other: &DeviceAddress10) -> 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 DeviceAddress10
impl PartialEq for DeviceAddress10
Source§fn eq(&self, other: &DeviceAddress10) -> bool
fn eq(&self, other: &DeviceAddress10) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DeviceAddress10
impl PartialOrd for DeviceAddress10
impl StructuralPartialEq for DeviceAddress10
Auto Trait Implementations§
impl Freeze for DeviceAddress10
impl RefUnwindSafe for DeviceAddress10
impl Send for DeviceAddress10
impl Sync for DeviceAddress10
impl Unpin for DeviceAddress10
impl UnsafeUnpin for DeviceAddress10
impl UnwindSafe for DeviceAddress10
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