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.