Struct spirt::cfg::sealed::IncomingEdgeCount
source · pub(super) struct IncomingEdgeCount(usize);
Expand description
Opaque newtype for the count of incoming edges (into a ControlRegion
).
The private field prevents direct mutation or construction, forcing the
use of IncomingEdgeCount::ONE
and addition operations to produce some
specific count (which would require explicit workarounds for misuse).
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
source§impl Add for IncomingEdgeCount
impl Add for IncomingEdgeCount
source§impl AddAssign for IncomingEdgeCount
impl AddAssign for IncomingEdgeCount
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl Clone for IncomingEdgeCount
impl Clone for IncomingEdgeCount
source§fn clone(&self) -> IncomingEdgeCount
fn clone(&self) -> IncomingEdgeCount
Returns a copy 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 IncomingEdgeCount
impl Debug for IncomingEdgeCount
source§impl Default for IncomingEdgeCount
impl Default for IncomingEdgeCount
source§fn default() -> IncomingEdgeCount
fn default() -> IncomingEdgeCount
Returns the “default value” for a type. Read more
source§impl PartialEq for IncomingEdgeCount
impl PartialEq for IncomingEdgeCount
source§fn eq(&self, other: &IncomingEdgeCount) -> bool
fn eq(&self, other: &IncomingEdgeCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IncomingEdgeCount
impl Eq for IncomingEdgeCount
impl StructuralPartialEq for IncomingEdgeCount
Auto Trait Implementations§
impl RefUnwindSafe for IncomingEdgeCount
impl Send for IncomingEdgeCount
impl Sync for IncomingEdgeCount
impl Unpin for IncomingEdgeCount
impl UnwindSafe for IncomingEdgeCount
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.