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;
}
Expand description

An unpacked typmod for a Type.

Required Methods§

source

fn from_typmod(typmod: i32) -> Result<Option<Self>, String>
where Self: Sized,

Unpacks the type constraint from a typmod value.

source

fn into_typmod(&self) -> i32

Packs the type constraint into a typmod value.

Implementors§