pub trait ColumnCommitmentMetadataMapExt {
// Required methods
fn from_column_fields_with_max_bounds(columns: &[ColumnField]) -> Self;
fn from_columns<'a>(
columns: impl IntoIterator<Item = (&'a Ident, &'a CommittableColumn<'a>)>,
) -> Self
where Self: Sized;
fn try_union(self, other: Self) -> Result<Self, ColumnCommitmentsMismatch>
where Self: Sized;
fn try_difference(
self,
other: Self,
) -> Result<Self, ColumnCommitmentsMismatch>
where Self: Sized;
}
Expand description
Extension trait intended for ColumnCommitmentMetadataMap
.
Required Methods§
Sourcefn from_column_fields_with_max_bounds(columns: &[ColumnField]) -> Self
fn from_column_fields_with_max_bounds(columns: &[ColumnField]) -> Self
Construct this mapping from a slice of column fields, with the bounds of each column set to the widest possible bounds for the column type.
Sourcefn from_columns<'a>(
columns: impl IntoIterator<Item = (&'a Ident, &'a CommittableColumn<'a>)>,
) -> Selfwhere
Self: Sized,
fn from_columns<'a>(
columns: impl IntoIterator<Item = (&'a Ident, &'a CommittableColumn<'a>)>,
) -> Selfwhere
Self: Sized,
Construct this mapping from an iterator of column ident and columns.
Sourcefn try_union(self, other: Self) -> Result<Self, ColumnCommitmentsMismatch>where
Self: Sized,
fn try_union(self, other: Self) -> Result<Self, ColumnCommitmentsMismatch>where
Self: Sized,
Combine two metadata maps as if the source table commitments are being unioned.
Sourcefn try_difference(self, other: Self) -> Result<Self, ColumnCommitmentsMismatch>where
Self: Sized,
fn try_difference(self, other: Self) -> Result<Self, ColumnCommitmentsMismatch>where
Self: Sized,
Combine two metadata maps as if the source table commitments are being differenced.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.