Expr

Struct Expr 

Source
pub struct Expr { /* private fields */ }

Implementations§

Source§

impl Expr

Source

pub fn id(&self) -> i64

Source

pub fn set_id(self: Pin<&mut Self>, id: i64)

Source

pub fn kind_case(&self) -> ExprKindCase

Source

pub fn has_const_expr(&self) -> bool

Source

pub fn const_expr(&self) -> &Constant

Source

pub fn const_expr_mut(self: Pin<&mut Self>) -> Pin<&mut Constant>

Source

pub fn has_ident_expr(&self) -> bool

Source

pub fn ident_expr(&self) -> &IdentExpr

Source

pub fn ident_expr_mut(self: Pin<&mut Self>) -> Pin<&mut IdentExpr>

Source

pub fn has_select_expr(&self) -> bool

Source

pub fn select_expr(&self) -> &SelectExpr

Source

pub fn select_expr_mut(self: Pin<&mut Self>) -> Pin<&mut SelectExpr>

Source

pub fn has_call_expr(&self) -> bool

Source

pub fn call_expr(&self) -> &CallExpr

Source

pub fn call_expr_mut(self: Pin<&mut Self>) -> Pin<&mut CallExpr>

Source

pub fn has_list_expr(&self) -> bool

Source

pub fn list_expr(&self) -> &ListExpr

Source

pub fn list_expr_mut(self: Pin<&mut Self>) -> Pin<&mut ListExpr>

Source

pub fn has_struct_expr(&self) -> bool

Source

pub fn struct_expr(&self) -> &StructExpr

Source

pub fn struct_expr_mut(self: Pin<&mut Self>) -> Pin<&mut StructExpr>

Source

pub fn has_map_expr(&self) -> bool

Source

pub fn map_expr(&self) -> &MapExpr

Source

pub fn map_expr_mut(self: Pin<&mut Self>) -> Pin<&mut MapExpr>

Source

pub fn has_comprehension_expr(&self) -> bool

Source

pub fn comprehension_expr(&self) -> &ComprehensionExpr

Source

pub fn comprehension_expr_mut( self: Pin<&mut Self>, ) -> Pin<&mut ComprehensionExpr>

Source§

impl Expr

Source

pub fn new() -> UniquePtr<Self>

Source

pub fn set_const_expr(self: Pin<&mut Self>, constant: UniquePtr<Constant>)

Source

pub fn set_ident_expr(self: Pin<&mut Self>, ident_expr: UniquePtr<IdentExpr>)

Source

pub fn set_select_expr(self: Pin<&mut Self>, select_expr: UniquePtr<SelectExpr>)

Source

pub fn set_call_expr(self: Pin<&mut Self>, call_expr: UniquePtr<CallExpr>)

Source

pub fn set_list_expr(self: Pin<&mut Self>, list_expr: UniquePtr<ListExpr>)

Source

pub fn set_struct_expr(self: Pin<&mut Self>, struct_expr: UniquePtr<StructExpr>)

Source

pub fn set_map_expr(self: Pin<&mut Self>, map_expr: UniquePtr<MapExpr>)

Source

pub fn set_comprehension_expr( self: Pin<&mut Self>, comprehension_expr: UniquePtr<ComprehensionExpr>, )

Trait Implementations§

Source§

impl ExternType for Expr

Source§

type Kind = Opaque

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl MutSpanElement for Expr

Source§

type TypeId = (r, u, s, t, (), c, e, l, __, c, x, x, (), M, u, t, S, p, a, n, __, E, x, p, r)

Source§

impl SizedExternType for Expr

Source§

impl SpanElement for Expr

Source§

type TypeId = (r, u, s, t, (), c, e, l, __, c, x, x, (), S, p, a, n, __, E, x, p, r)

Source§

impl UniquePtrVectorElement for Expr

Source§

fn push_unique(v: Pin<&mut CxxVector<Self>>, value: UniquePtr<Self>)

Source§

fn pop_unique(v: Pin<&mut CxxVector<Self>>) -> UniquePtr<Self>

Source§

impl Send for Expr

Source§

impl Sync for Expr

Source§

impl UniquePtrTarget for Expr

Source§

impl VectorElement for Expr

Auto Trait Implementations§

§

impl !Freeze for Expr

§

impl RefUnwindSafe for Expr

§

impl !Unpin for Expr

§

impl UnwindSafe for Expr

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.