[][src]Struct postgres_parser::sys::RelabelType

#[repr(C)]pub struct RelabelType {
    pub xpr: Expr,
    pub arg: *mut Expr,
    pub resulttype: Oid,
    pub resulttypmod: int32,
    pub resultcollid: Oid,
    pub relabelformat: CoercionForm,
    pub location: c_int,
}

RelabelType

RelabelType represents a "dummy" type coercion between two binary compatible datatypes, such as reinterpreting the result of an OID expression as an int4. It is a noop at runtime; we only need it to provide a place to store the correct type to be attributed to the expression result during type resolution. (We can't get away with just overwriting the type field of the input expression node, so we need a separate node to show the coercion's result type.)

Fields

xpr: Exprarg: *mut Exprresulttype: Oid

input expression

resulttypmod: int32

output type of coercion expression

resultcollid: Oid

output typmod (usually 1)

relabelformat: CoercionForm

OID of collation, or InvalidOid if none

location: c_int

how to display this node

Trait Implementations

impl Debug for RelabelType[src]

impl Default for RelabelType[src]

impl Eq for RelabelType[src]

impl Hash for RelabelType[src]

impl PartialEq<RelabelType> for RelabelType[src]

impl StructuralEq for RelabelType[src]

impl StructuralPartialEq for RelabelType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.