MacroExprFactory

Struct MacroExprFactory 

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

Implementations§

Source§

impl MacroExprFactory

Source

pub fn accu_var_name<'a>(self: Pin<&'a mut Self>) -> StringView<'a>

Source§

impl MacroExprFactory

Source

pub fn copy(self: Pin<&mut Self>, expr: &Expr) -> UniquePtr<Expr>

Source

pub fn copy_list_element( self: Pin<&mut Self>, list_element: &ListExprElement, ) -> UniquePtr<ListExprElement>

Source

pub fn copy_struct_field( self: Pin<&mut Self>, struct_field: &StructExprField, ) -> UniquePtr<StructExprField>

Source

pub fn copy_map_entry( self: Pin<&mut Self>, map_entry: &MapExprEntry, ) -> UniquePtr<MapExprEntry>

Source

pub fn new_unspecified(self: Pin<&mut Self>) -> UniquePtr<Expr>

Source

pub fn new_null_const(self: Pin<&mut Self>) -> UniquePtr<Expr>

Source

pub fn new_bool_const(self: Pin<&mut Self>, value: bool) -> UniquePtr<Expr>

Source

pub fn new_int_const(self: Pin<&mut Self>, value: i64) -> UniquePtr<Expr>

Source

pub fn new_double_const(self: Pin<&mut Self>, value: f64) -> UniquePtr<Expr>

Source

pub fn new_bytes_const( self: Pin<&mut Self>, value: StringView<'_>, ) -> UniquePtr<Expr>

Source

pub fn new_string_const( self: Pin<&mut Self>, value: StringView<'_>, ) -> UniquePtr<Expr>

Source

pub fn new_ident(self: Pin<&mut Self>, name: StringView<'_>) -> UniquePtr<Expr>

Source

pub fn new_accu_ident(self: Pin<&mut Self>) -> UniquePtr<Expr>

Source

pub fn new_select( self: Pin<&mut Self>, operand: UniquePtr<Expr>, field: StringView<'_>, ) -> UniquePtr<Expr>

Source

pub fn new_presence_test( self: Pin<&mut Self>, operand: UniquePtr<Expr>, field: StringView<'_>, ) -> UniquePtr<Expr>

Source

pub fn new_call( self: Pin<&mut Self>, function: StringView<'_>, args: UniquePtr<CxxVector<Expr>>, ) -> UniquePtr<Expr>

Source

pub fn new_member_call( self: Pin<&mut Self>, function: StringView<'_>, target: UniquePtr<Expr>, args: UniquePtr<CxxVector<Expr>>, ) -> UniquePtr<Expr>

Source

pub fn new_list_element( self: Pin<&mut Self>, expr: UniquePtr<Expr>, optional: bool, ) -> UniquePtr<ListExprElement>

Source

pub fn new_list( self: Pin<&mut Self>, elements: UniquePtr<CxxVector<ListExprElement>>, ) -> UniquePtr<Expr>

Source

pub fn new_struct_field( self: Pin<&mut Self>, name: StringView<'_>, value: UniquePtr<Expr>, optional: bool, ) -> UniquePtr<StructExprField>

Source

pub fn new_struct( self: Pin<&mut Self>, name: StringView<'_>, fields: UniquePtr<CxxVector<StructExprField>>, ) -> UniquePtr<Expr>

Source

pub fn new_map_entry( self: Pin<&mut Self>, key: UniquePtr<Expr>, value: UniquePtr<Expr>, optional: bool, ) -> UniquePtr<MapExprEntry>

Source

pub fn new_map( self: Pin<&mut Self>, entries: UniquePtr<CxxVector<MapExprEntry>>, ) -> UniquePtr<Expr>

Source

pub fn new_comprehension( self: Pin<&mut Self>, iter_var: StringView<'_>, iter_range: UniquePtr<Expr>, accu_var: StringView<'_>, accu_init: UniquePtr<Expr>, loop_condition: UniquePtr<Expr>, loop_step: UniquePtr<Expr>, result: UniquePtr<Expr>, ) -> UniquePtr<Expr>

Source

pub fn new_comprehension2( self: Pin<&mut Self>, iter_var: StringView<'_>, iter_var2: StringView<'_>, iter_range: UniquePtr<Expr>, accu_var: StringView<'_>, accu_init: UniquePtr<Expr>, loop_condition: UniquePtr<Expr>, loop_step: UniquePtr<Expr>, result: UniquePtr<Expr>, ) -> UniquePtr<Expr>

Source

pub fn report_error( self: Pin<&mut Self>, message: StringView<'_>, ) -> UniquePtr<Expr>

Source

pub fn report_error_at( self: Pin<&mut Self>, expr: &Expr, message: StringView<'_>, ) -> UniquePtr<Expr>

Trait Implementations§

Source§

impl ExternType for MacroExprFactory

Source§

type Kind = Opaque

Source§

type Id

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

impl Send for MacroExprFactory

Source§

impl Sync for MacroExprFactory

Auto Trait Implementations§

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.