pub struct ColumnCount(/* private fields */);Expand description
The number of columns in a trace table.
This is the “shape” of an AIR: two AIRs with the same
ColumnCount operate on trace tables of the same width.
§Examples
use machine_cat::ColumnCount;
let a = ColumnCount::new(2);
let b = ColumnCount::new(3);
assert_eq!((a + b).count(), 5);Implementations§
Source§impl ColumnCount
impl ColumnCount
Trait Implementations§
Source§impl Add for ColumnCount
impl Add for ColumnCount
Source§impl Clone for ColumnCount
impl Clone for ColumnCount
Source§fn clone(&self) -> ColumnCount
fn clone(&self) -> ColumnCount
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 ColumnCount
impl Debug for ColumnCount
Source§impl Display for ColumnCount
impl Display for ColumnCount
Source§impl Hash for ColumnCount
impl Hash for ColumnCount
Source§impl PartialEq for ColumnCount
impl PartialEq for ColumnCount
impl Copy for ColumnCount
impl Eq for ColumnCount
impl StructuralPartialEq for ColumnCount
Auto Trait Implementations§
impl Freeze for ColumnCount
impl RefUnwindSafe for ColumnCount
impl Send for ColumnCount
impl Sync for ColumnCount
impl Unpin for ColumnCount
impl UnsafeUnpin for ColumnCount
impl UnwindSafe for ColumnCount
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