pub struct GroupAddress(/* private fields */);Implementations§
Source§impl GroupAddress
impl GroupAddress
pub const fn new_three_level(main: u8, middle: u8, sub: u8) -> Result<Self>
pub const fn new_two_level(main: u8, sub: u16) -> Result<Self>
pub const fn from_raw(raw: u16) -> Self
pub const fn raw(self) -> u16
pub const fn main(self) -> u8
pub const fn middle(self) -> u8
pub const fn sub(self) -> u8
pub const fn two_level_sub(self) -> u16
pub fn parse_two_level(value: &str) -> Result<Self>
pub fn to_two_level_display(self) -> TwoLevelGroupAddressDisplay
pub fn to_two_level_string(self) -> String
Trait Implementations§
Source§impl Clone for GroupAddress
impl Clone for GroupAddress
Source§fn clone(&self) -> GroupAddress
fn clone(&self) -> GroupAddress
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 GroupAddress
Source§impl Debug for GroupAddress
impl Debug for GroupAddress
Source§impl Display for GroupAddress
impl Display for GroupAddress
impl Eq for GroupAddress
Source§impl FromStr for GroupAddress
impl FromStr for GroupAddress
Source§impl Hash for GroupAddress
impl Hash for GroupAddress
Source§impl Ord for GroupAddress
impl Ord for GroupAddress
Source§fn cmp(&self, other: &GroupAddress) -> Ordering
fn cmp(&self, other: &GroupAddress) -> 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 GroupAddress
impl PartialEq for GroupAddress
Source§fn eq(&self, other: &GroupAddress) -> bool
fn eq(&self, other: &GroupAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GroupAddress
impl PartialOrd for GroupAddress
impl StructuralPartialEq for GroupAddress
Auto Trait Implementations§
impl Freeze for GroupAddress
impl RefUnwindSafe for GroupAddress
impl Send for GroupAddress
impl Sync for GroupAddress
impl Unpin for GroupAddress
impl UnsafeUnpin for GroupAddress
impl UnwindSafe for GroupAddress
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