pub struct LayerCount(/* private fields */);Expand description
A non-zero board layer count.
Implementations§
Source§impl LayerCount
impl LayerCount
Sourcepub fn new(value: u8) -> Result<Self, LayerCountError>
pub fn new(value: u8) -> Result<Self, LayerCountError>
Trait Implementations§
Source§impl Clone for LayerCount
impl Clone for LayerCount
Source§fn clone(&self) -> LayerCount
fn clone(&self) -> LayerCount
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 LayerCount
impl Debug for LayerCount
Source§impl Display for LayerCount
impl Display for LayerCount
Source§impl Hash for LayerCount
impl Hash for LayerCount
Source§impl Ord for LayerCount
impl Ord for LayerCount
Source§fn cmp(&self, other: &LayerCount) -> Ordering
fn cmp(&self, other: &LayerCount) -> 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 LayerCount
impl PartialEq for LayerCount
Source§fn eq(&self, other: &LayerCount) -> bool
fn eq(&self, other: &LayerCount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LayerCount
impl PartialOrd for LayerCount
impl Copy for LayerCount
impl Eq for LayerCount
impl StructuralPartialEq for LayerCount
Auto Trait Implementations§
impl Freeze for LayerCount
impl RefUnwindSafe for LayerCount
impl Send for LayerCount
impl Sync for LayerCount
impl Unpin for LayerCount
impl UnsafeUnpin for LayerCount
impl UnwindSafe for LayerCount
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