pub struct TableShape(/* private fields */);Expand description
Shape-only description of one verifier table.
§Contents
- Row count, always a power of two.
- Column count, strictly positive.
Implementations§
Source§impl TableShape
impl TableShape
Sourcepub const fn new(num_variables: usize, width: usize) -> Self
pub const fn new(num_variables: usize, width: usize) -> Self
Builds a table shape of 2^k rows and width columns.
§Panics
- Column count must be at least one.
- Log row count must fit in the target’s pointer width.
Sourcepub const fn num_variables(&self) -> usize
pub const fn num_variables(&self) -> usize
Returns the number of variables per column.
Trait Implementations§
Source§impl Clone for TableShape
impl Clone for TableShape
Source§fn clone(&self) -> TableShape
fn clone(&self) -> TableShape
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 TableShape
Source§impl Debug for TableShape
impl Debug for TableShape
impl Eq for TableShape
Source§impl PartialEq for TableShape
impl PartialEq for TableShape
Source§fn eq(&self, other: &TableShape) -> bool
fn eq(&self, other: &TableShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableShape
Auto Trait Implementations§
impl Freeze for TableShape
impl RefUnwindSafe for TableShape
impl Send for TableShape
impl Sync for TableShape
impl Unpin for TableShape
impl UnsafeUnpin for TableShape
impl UnwindSafe for TableShape
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more