Struct ASTExpr

Source
pub struct ASTExpr {
    pub ptr: uintptr_t,
    pub should_free_on_drop: bool,
}
Expand description

Wraps isl_ast_expr.

Fields§

§ptr: uintptr_t§should_free_on_drop: bool

Implementations§

Source§

impl ASTExpr

Source

pub fn list_insert(list: ASTExprList, pos: u32, el: ASTExpr) -> ASTExprList

Wraps isl_ast_expr_list_insert.

Source

pub fn list_clear(list: ASTExprList) -> ASTExprList

Wraps isl_ast_expr_list_clear.

Source

pub fn and(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_and.

Source

pub fn and_then(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_and_then.

Source

pub fn eq(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_eq.

Source

pub fn lt(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_lt.

Source

pub fn to_str(&self) -> &str

Wraps isl_ast_expr_to_str.

Source

pub fn int_get_val(&self) -> Val

Wraps isl_ast_expr_int_get_val.

Source

pub fn le(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_le.

Source

pub fn substitute_ids(self, id2expr: IdToASTExpr) -> ASTExpr

Wraps isl_ast_expr_substitute_ids.

Source

pub fn get_ctx(&self) -> Context

Wraps isl_ast_expr_get_ctx.

Source

pub fn sub(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_sub.

Source

pub fn address_of(self) -> ASTExpr

Wraps isl_ast_expr_address_of.

Source

pub fn list_get_at(list: &ASTExprList, index: i32) -> ASTExpr

Wraps isl_ast_expr_list_get_at.

Source

pub fn list_copy(list: &ASTExprList) -> ASTExprList

Wraps isl_ast_expr_list_copy.

Source

pub fn call(self, arguments: ASTExprList) -> ASTExpr

Wraps isl_ast_expr_call.

Source

pub fn get_op_type(&self) -> ASTExprOpType

Wraps isl_ast_expr_get_op_type.

Source

pub fn get_val(&self) -> Val

Wraps isl_ast_expr_get_val.

Source

pub fn ge(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_ge.

Source

pub fn list_set_at(list: ASTExprList, index: i32, el: ASTExpr) -> ASTExprList

Wraps isl_ast_expr_list_set_at.

Source

pub fn get_op_arg(&self, pos: i32) -> ASTExpr

Wraps isl_ast_expr_get_op_arg.

Source

pub fn op_get_n_arg(&self) -> i32

Wraps isl_ast_expr_op_get_n_arg.

Source

pub fn access(self, indices: ASTExprList) -> ASTExpr

Wraps isl_ast_expr_access.

Source

pub fn list_dump(list: &ASTExprList)

Wraps isl_ast_expr_list_dump.

Source

pub fn get_op_n_arg(&self) -> i32

Wraps isl_ast_expr_get_op_n_arg.

Source

pub fn from_val(v: Val) -> ASTExpr

Wraps isl_ast_expr_from_val.

Source

pub fn list_alloc(ctx: &Context, n: i32) -> ASTExprList

Wraps isl_ast_expr_list_alloc.

Source

pub fn list_from_ast_expr(self) -> ASTExprList

Wraps isl_ast_expr_list_from_ast_expr.

Source

pub fn div(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_div.

Source

pub fn dump(&self)

Wraps isl_ast_expr_dump.

Source

pub fn pdiv_q(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_pdiv_q.

Source

pub fn mul(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_mul.

Source

pub fn to_C_str(&self) -> &str

Wraps isl_ast_expr_to_C_str.

Source

pub fn from_id(id: Id) -> ASTExpr

Wraps isl_ast_expr_from_id.

Source

pub fn op_get_arg(&self, pos: i32) -> ASTExpr

Wraps isl_ast_expr_op_get_arg.

Source

pub fn op_type_print_macro(type_: ASTExprOpType, p: Printer) -> Printer

Wraps isl_ast_expr_op_type_print_macro.

Source

pub fn list_to_str(list: &ASTExprList) -> &str

Wraps isl_ast_expr_list_to_str.

Source

pub fn gt(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_gt.

Source

pub fn list_free(list: ASTExprList) -> ASTExprList

Wraps isl_ast_expr_list_free.

Source

pub fn list_reverse(list: ASTExprList) -> ASTExprList

Wraps isl_ast_expr_list_reverse.

Source

pub fn or_else(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_or_else.

Source

pub fn id_get_id(&self) -> Id

Wraps isl_ast_expr_id_get_id.

Source

pub fn list_add(list: ASTExprList, el: ASTExpr) -> ASTExprList

Wraps isl_ast_expr_list_add.

Source

pub fn list_swap(list: ASTExprList, pos1: u32, pos2: u32) -> ASTExprList

Wraps isl_ast_expr_list_swap.

Source

pub fn op_get_type(&self) -> ASTExprOpType

Wraps isl_ast_expr_op_get_type.

Source

pub fn list_set_ast_expr( list: ASTExprList, index: i32, el: ASTExpr, ) -> ASTExprList

Wraps isl_ast_expr_list_set_ast_expr.

Source

pub fn add(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_add.

Source

pub fn list_get_ctx(list: &ASTExprList) -> Context

Wraps isl_ast_expr_list_get_ctx.

Source

pub fn free(self) -> ASTExpr

Wraps isl_ast_expr_free.

Source

pub fn or(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_or.

Source

pub fn copy(&self) -> ASTExpr

Wraps isl_ast_expr_copy.

Source

pub fn get_id(&self) -> Id

Wraps isl_ast_expr_get_id.

Source

pub fn list_get_ast_expr(list: &ASTExprList, index: i32) -> ASTExpr

Wraps isl_ast_expr_list_get_ast_expr.

Source

pub fn op_type_set_print_name( p: Printer, type_: ASTExprOpType, name: &str, ) -> Printer

Wraps isl_ast_expr_op_type_set_print_name.

Source

pub fn to_list(self) -> ASTExprList

Wraps isl_ast_expr_to_list.

Source

pub fn list_size(list: &ASTExprList) -> i32

Wraps isl_ast_expr_list_size.

Source

pub fn get_type(&self) -> ASTExprType

Wraps isl_ast_expr_get_type.

Source

pub fn set_op_arg(self, pos: i32, arg: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_set_op_arg.

Source

pub fn print_macros(&self, p: Printer) -> Printer

Wraps isl_ast_expr_print_macros.

Source

pub fn list_concat(list1: ASTExprList, list2: ASTExprList) -> ASTExprList

Wraps isl_ast_expr_list_concat.

Source

pub fn list_n_ast_expr(list: &ASTExprList) -> i32

Wraps isl_ast_expr_list_n_ast_expr.

Source

pub fn list_drop(list: ASTExprList, first: u32, n: u32) -> ASTExprList

Wraps isl_ast_expr_list_drop.

Source

pub fn pdiv_r(self, expr2: ASTExpr) -> ASTExpr

Wraps isl_ast_expr_pdiv_r.

Source

pub fn is_equal(&self, expr2: &ASTExpr) -> bool

Wraps isl_ast_expr_is_equal.

Source

pub fn neg(self) -> ASTExpr

Wraps isl_ast_expr_neg.

Source

pub fn do_not_free_on_drop(&mut self)

Does not call isl_ast_expr_free() on being dropped. (For internal use only.)

Trait Implementations§

Source§

impl Drop for ASTExpr

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.