pub struct ElementCounts {
pub buses: usize,
pub branches: usize,
pub gens: usize,
}Expand description
The element counts that define a scenario batch’s shared base shape. Named
(rather than a bare (usize, usize, usize)) so the three same-typed fields
can’t be transposed silently in an error message or a comparison.
Fields§
§buses: usize§branches: usize§gens: usizeTrait Implementations§
Source§impl Clone for ElementCounts
impl Clone for ElementCounts
Source§fn clone(&self) -> ElementCounts
fn clone(&self) -> ElementCounts
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 ElementCounts
Source§impl Debug for ElementCounts
impl Debug for ElementCounts
Source§impl Display for ElementCounts
impl Display for ElementCounts
impl Eq for ElementCounts
Source§impl PartialEq for ElementCounts
impl PartialEq for ElementCounts
Source§fn eq(&self, other: &ElementCounts) -> bool
fn eq(&self, other: &ElementCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElementCounts
Auto Trait Implementations§
impl Freeze for ElementCounts
impl RefUnwindSafe for ElementCounts
impl Send for ElementCounts
impl Sync for ElementCounts
impl Unpin for ElementCounts
impl UnsafeUnpin for ElementCounts
impl UnwindSafe for ElementCounts
Blanket Implementations§
impl<T> Allocation for T
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.