pub struct Eui64Addr(/* private fields */);Expand description
Represents a physical EUI-64 format address.
Implementations§
Source§impl Eui64Addr
impl Eui64Addr
Sourcepub const fn to_colon_seperated_array(&self) -> [u8; 23]
pub const fn to_colon_seperated_array(&self) -> [u8; 23]
Returns an array contains a colon formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Sourcepub const fn to_hyphen_seperated_array(&self) -> [u8; 23]
pub const fn to_hyphen_seperated_array(&self) -> [u8; 23]
Returns an array contains a hyphen formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Sourcepub const fn to_dot_seperated_array(&self) -> [u8; 19]
pub const fn to_dot_seperated_array(&self) -> [u8; 19]
Returns an array contains a dot formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Eui64Addr
impl<'a> Deserialize<'a> for Eui64Addr
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Eui64Addr
impl Ord for Eui64Addr
Source§impl PartialOrd for Eui64Addr
impl PartialOrd for Eui64Addr
impl Copy for Eui64Addr
impl Eq for Eui64Addr
impl StructuralPartialEq for Eui64Addr
Auto Trait Implementations§
impl Freeze for Eui64Addr
impl RefUnwindSafe for Eui64Addr
impl Send for Eui64Addr
impl Sync for Eui64Addr
impl Unpin for Eui64Addr
impl UnwindSafe for Eui64Addr
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