[−][src]Struct postgres_parser::sys::RelabelType
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: Expr
arg: *mut Expr
resulttype: 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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RelabelType> for RelabelType
[src]
fn eq(&self, other: &RelabelType) -> bool
[src]
fn ne(&self, other: &RelabelType) -> bool
[src]
impl StructuralEq for RelabelType
[src]
impl StructuralPartialEq for RelabelType
[src]
Auto Trait Implementations
impl RefUnwindSafe for RelabelType
impl !Send for RelabelType
impl !Sync for RelabelType
impl Unpin for RelabelType
impl UnwindSafe for RelabelType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,