pub struct PgOperator {
pub opname: Option<PgrxOperatorOpName>,
pub commutator: Option<PgrxOperatorAttributeWithIdent>,
pub negator: Option<PgrxOperatorAttributeWithIdent>,
pub restrict: Option<PgrxOperatorAttributeWithIdent>,
pub join: Option<PgrxOperatorAttributeWithIdent>,
pub hashes: bool,
pub merges: bool,
}Expand description
A parsed #[pg_operator] operator.
It is created during PgExtern parsing.
Fields§
§opname: Option<PgrxOperatorOpName>§commutator: Option<PgrxOperatorAttributeWithIdent>§negator: Option<PgrxOperatorAttributeWithIdent>§restrict: Option<PgrxOperatorAttributeWithIdent>§join: Option<PgrxOperatorAttributeWithIdent>§hashes: bool§merges: boolImplementations§
Source§impl PgOperator
impl PgOperator
pub fn section_len_tokens(&self) -> TokenStream2
pub fn section_writer_tokens(&self, writer: TokenStream2) -> TokenStream2
Trait Implementations§
Source§impl Clone for PgOperator
impl Clone for PgOperator
Source§fn clone(&self) -> PgOperator
fn clone(&self) -> PgOperator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PgOperator
impl Debug for PgOperator
Source§impl Default for PgOperator
impl Default for PgOperator
Source§fn default() -> PgOperator
fn default() -> PgOperator
Returns the “default value” for a type. Read more
Source§impl ToTokens for PgOperator
impl ToTokens for PgOperator
Source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for PgOperator
impl RefUnwindSafe for PgOperator
impl !Send for PgOperator
impl !Sync for PgOperator
impl Unpin for PgOperator
impl UnsafeUnpin for PgOperator
impl UnwindSafe for PgOperator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.