[][src]Struct postgres_parser::sys::RawStmt

#[repr(C)]pub struct RawStmt {
    pub type_: NodeTag,
    pub stmt: *mut Node,
    pub stmt_location: c_int,
    pub stmt_len: c_int,
}

RawStmt container for any one statement's raw parse tree

Parse analysis converts a raw parse tree headed by a RawStmt node into an analyzed statement headed by a Query node. For optimizable statements, the conversion is complex. For utility statements, the parser usually just transfers the raw parse tree (sans RawStmt) into the utilityStmt field of the Query node, and all the useful work happens at execution time.

stmt_location/stmt_len identify the portion of the source text string containing this raw statement (useful for multistatement strings).

Fields

type_: NodeTagstmt: *mut Nodestmt_location: c_int

raw parse tree

stmt_len: c_int

start location, or 1 if unknown

Trait Implementations

impl Debug for RawStmt[src]

impl Default for RawStmt[src]

impl Eq for RawStmt[src]

impl Hash for RawStmt[src]

impl PartialEq<RawStmt> for RawStmt[src]

impl StructuralEq for RawStmt[src]

impl StructuralPartialEq for RawStmt[src]

Auto Trait Implementations

impl RefUnwindSafe for RawStmt

impl !Send for RawStmt

impl !Sync for RawStmt

impl Unpin for RawStmt

impl UnwindSafe for RawStmt

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.