Trait mz_pgrepr::types::TypeConstraint
source · pub trait TypeConstraint: Display {
// Required methods
fn from_typmod(typmod: i32) -> Result<Option<Self>, String>
where Self: Sized;
fn into_typmod(&self) -> i32;
}
Required Methods§
sourcefn from_typmod(typmod: i32) -> Result<Option<Self>, String>where
Self: Sized,
fn from_typmod(typmod: i32) -> Result<Option<Self>, String>where
Self: Sized,
Unpacks the type constraint from a typmod value.
sourcefn into_typmod(&self) -> i32
fn into_typmod(&self) -> i32
Packs the type constraint into a typmod value.