#[repr(transparent)]pub struct NumDomains(pub u8);Expand description
CAP.ND encoding: number of supported domain IDs. §10.4.2, Table 10-2.
Tuple Fields§
§0: u8Implementations§
Source§impl NumDomains
impl NumDomains
Sourcepub const ND_16: NumDomains
pub const ND_16: NumDomains
16 domains (4-bit domain ID).
Sourcepub const ND_64: NumDomains
pub const ND_64: NumDomains
64 domains (6-bit domain ID).
Sourcepub const ND_256: NumDomains
pub const ND_256: NumDomains
256 domains (8-bit domain ID).
Sourcepub const ND_1K: NumDomains
pub const ND_1K: NumDomains
1024 domains (10-bit domain ID).
Sourcepub const ND_4K: NumDomains
pub const ND_4K: NumDomains
4096 domains (12-bit domain ID).
Sourcepub const ND_16K: NumDomains
pub const ND_16K: NumDomains
16384 domains (14-bit domain ID).
Sourcepub const ND_64K: NumDomains
pub const ND_64K: NumDomains
65536 domains (16-bit domain ID).
Trait Implementations§
Source§impl Clone for NumDomains
impl Clone for NumDomains
Source§fn clone(&self) -> NumDomains
fn clone(&self) -> NumDomains
Returns a duplicate of the value. Read more
1.0.0 · 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 NumDomains
impl Debug for NumDomains
Source§impl Hash for NumDomains
impl Hash for NumDomains
Source§impl Ord for NumDomains
impl Ord for NumDomains
Source§fn cmp(&self, other: &NumDomains) -> Ordering
fn cmp(&self, other: &NumDomains) -> Ordering
1.21.0 · 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 NumDomains
impl PartialEq for NumDomains
Source§impl PartialOrd for NumDomains
impl PartialOrd for NumDomains
impl Copy for NumDomains
impl Eq for NumDomains
impl StructuralPartialEq for NumDomains
Auto Trait Implementations§
impl Freeze for NumDomains
impl RefUnwindSafe for NumDomains
impl Send for NumDomains
impl Sync for NumDomains
impl Unpin for NumDomains
impl UnsafeUnpin for NumDomains
impl UnwindSafe for NumDomains
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