Struct proof_of_sql::base::commitment::ColumnCommitmentMetadata
source · pub struct ColumnCommitmentMetadata { /* private fields */ }
Expand description
Anonymous metadata associated with a column commitment.
Implementations§
source§impl ColumnCommitmentMetadata
impl ColumnCommitmentMetadata
sourcepub fn try_new(
column_type: ColumnType,
bounds: ColumnBounds,
) -> Result<ColumnCommitmentMetadata, InvalidColumnCommitmentMetadata>
pub fn try_new( column_type: ColumnType, bounds: ColumnBounds, ) -> Result<ColumnCommitmentMetadata, InvalidColumnCommitmentMetadata>
Construct a new ColumnCommitmentMetadata
.
Will error if the supplied metadata are invalid. i.e., if The Bounds variant and column type do not match.
sourcepub fn from_column_type_with_max_bounds(column_type: ColumnType) -> Self
pub fn from_column_type_with_max_bounds(column_type: ColumnType) -> Self
Construct a ColumnCommitmentMetadata
with widest possible bounds for the column type.
sourcepub fn column_type(&self) -> &ColumnType
pub fn column_type(&self) -> &ColumnType
Immutable reference to this column’s type.
sourcepub fn bounds(&self) -> &ColumnBounds
pub fn bounds(&self) -> &ColumnBounds
Immutable reference to this column’s bounds.
sourcepub fn from_column(column: &CommittableColumn<'_>) -> ColumnCommitmentMetadata
pub fn from_column(column: &CommittableColumn<'_>) -> ColumnCommitmentMetadata
Contruct a ColumnCommitmentMetadata
by analyzing a column.
sourcepub fn try_union(
self,
other: ColumnCommitmentMetadata,
) -> Result<ColumnCommitmentMetadata, ColumnCommitmentMetadataMismatch>
pub fn try_union( self, other: ColumnCommitmentMetadata, ) -> Result<ColumnCommitmentMetadata, ColumnCommitmentMetadataMismatch>
Combine two ColumnCommitmentMetadata
as if their source collections are being unioned.
Can error if the two metadatas are mismatched.
sourcepub fn try_difference(
self,
other: ColumnCommitmentMetadata,
) -> Result<ColumnCommitmentMetadata, ColumnCommitmentMetadataMismatch>
pub fn try_difference( self, other: ColumnCommitmentMetadata, ) -> Result<ColumnCommitmentMetadata, ColumnCommitmentMetadataMismatch>
Combine two ColumnBounds
as if their source collections are being differenced.
This should be interpreted as the set difference of the two collections. The result would be the rows in self that are not also rows in other.
Trait Implementations§
source§impl Clone for ColumnCommitmentMetadata
impl Clone for ColumnCommitmentMetadata
source§fn clone(&self) -> ColumnCommitmentMetadata
fn clone(&self) -> ColumnCommitmentMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnCommitmentMetadata
impl Debug for ColumnCommitmentMetadata
source§impl<'de> Deserialize<'de> for ColumnCommitmentMetadata
impl<'de> Deserialize<'de> for ColumnCommitmentMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ColumnCommitmentMetadata
impl PartialEq for ColumnCommitmentMetadata
source§impl Serialize for ColumnCommitmentMetadata
impl Serialize for ColumnCommitmentMetadata
impl Copy for ColumnCommitmentMetadata
impl Eq for ColumnCommitmentMetadata
impl StructuralPartialEq for ColumnCommitmentMetadata
Auto Trait Implementations§
impl Freeze for ColumnCommitmentMetadata
impl RefUnwindSafe for ColumnCommitmentMetadata
impl Send for ColumnCommitmentMetadata
impl Sync for ColumnCommitmentMetadata
impl Unpin for ColumnCommitmentMetadata
impl UnwindSafe for ColumnCommitmentMetadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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§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
key
and return true
if they are equal.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>
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>
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