pub fn typlen(&self) -> i16 {
        match self {
            Type::Array(_) => -1,
            Type::Bool => 1,
            Type::Bytea => -1,
            Type::Date => 4,
            Type::Float4 => 4,
            Type::Float8 => 8,
            Type::Int2 => 2,
            Type::Int4 => 4,
            Type::Int8 => 8,
            Type::Interval => 16,
            Type::Jsonb => -1,
            Type::List(_) => -1,
            Type::Map { .. } => -1,
            Type::Numeric => -1,
            Type::Oid => 4,
            Type::Record(_) => -1,
            Type::Text => -1,
            Type::Char => -1,
            Type::VarChar => -1,
            Type::Time => 4,
            Type::Timestamp => 8,
            Type::TimestampTz => 8,
            Type::Uuid => 16,
            Type::RegClass => 4,
            Type::RegProc => 4,
            Type::RegType => 4,
        }
    }
/// Returns the number of bytes in the binary representation of this
/// type, or -1 if the type has a variable-length representation.
Returns the number of bytes in the binary representation of this
type, or -1 if the type has a variable-length representation.
Returns the number of bytes in the binary representation of this type or - 1 if the type has a variable - length representation .
pub fn typlen(&self) -> i16 {
        match self {
            Type::Array(_) => -1,
            Type::Bool => 1,
            Type::Bytea => -1,
            Type::Date => 4,
            Type::Float4 => 4,
            Type::Float8 => 8,
            Type::Int2 => 2,
            Type::Int4 => 4,
            Type::Int8 => 8,
            Type::Interval => 16,
            Type::Jsonb => -1,
            Type::List(_) => -1,
            Type::Map { .. } => -1,
            Type::Numeric => -1,
            Type::Oid => 4,
            Type::Record(_) => -1,
            Type::Text => -1,
            Type::Char => -1,
            Type::VarChar => -1,
            Type::Time => 4,
            Type::Timestamp => 8,
            Type::TimestampTz => 8,
            Type::Uuid => 16,
            Type::RegClass => 4,
            Type::RegProc => 4,
            Type::RegType => 4,
        }
    }
pub fn typlen ( & self ) -> i16 { match self { Type :: Array ( _ ) => - 1 , Type :: Bool => 1 , Type :: Bytea => - 1 , Type :: Date => 4 , Type :: Float4 => 4 , Type :: Float8 => 8 , Type :: Int2 => 2 , Type :: Int4 => 4 , Type :: Int8 => 8 , Type :: Interval => 16 , Type :: Jsonb => - 1 , Type :: List ( _ ) => - 1 , Type :: Map { .. } => - 1 , Type :: Numeric => - 1 , Type :: Oid => 4 , Type :: Record ( _ ) => - 1 , Type :: Text => - 1 , Type :: Char => - 1 , Type :: VarChar => - 1 , Type :: Time => 4 , Type :: Timestamp => 8 , Type :: TimestampTz => 8 , Type :: Uuid => 16 , Type :: RegClass => 4 , Type :: RegProc => 4 , Type :: RegType => 4 , } }
Returns the number of bytes in the binary representation of this
type, or -1 if the type has a variable-length representation.
Returns the number of bytes in the binary representation of this type or - 1 if the type has a variable - length representation .
&self
&self