mz_pgrepr::types

Trait 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§