pub struct ASTExprList {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}
Expand description
Wraps isl_ast_expr_list
.
Fields§
§ptr: uintptr_t
§should_free_on_drop: bool
Implementations§
Source§impl ASTExprList
impl ASTExprList
Sourcepub fn insert(self, pos: u32, el: ASTExpr) -> ASTExprList
pub fn insert(self, pos: u32, el: ASTExpr) -> ASTExprList
Wraps isl_ast_expr_list_insert
.
Sourcepub fn clear(self) -> ASTExprList
pub fn clear(self) -> ASTExprList
Wraps isl_ast_expr_list_clear
.
Sourcepub fn copy(&self) -> ASTExprList
pub fn copy(&self) -> ASTExprList
Wraps isl_ast_expr_list_copy
.
Sourcepub fn set_at(self, index: i32, el: ASTExpr) -> ASTExprList
pub fn set_at(self, index: i32, el: ASTExpr) -> ASTExprList
Wraps isl_ast_expr_list_set_at
.
Sourcepub fn alloc(ctx: &Context, n: i32) -> ASTExprList
pub fn alloc(ctx: &Context, n: i32) -> ASTExprList
Wraps isl_ast_expr_list_alloc
.
Sourcepub fn from_ast_expr(el: ASTExpr) -> ASTExprList
pub fn from_ast_expr(el: ASTExpr) -> ASTExprList
Wraps isl_ast_expr_list_from_ast_expr
.
Sourcepub fn free(self) -> ASTExprList
pub fn free(self) -> ASTExprList
Wraps isl_ast_expr_list_free
.
Sourcepub fn reverse(self) -> ASTExprList
pub fn reverse(self) -> ASTExprList
Wraps isl_ast_expr_list_reverse
.
Sourcepub fn add(self, el: ASTExpr) -> ASTExprList
pub fn add(self, el: ASTExpr) -> ASTExprList
Wraps isl_ast_expr_list_add
.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> ASTExprList
pub fn swap(self, pos1: u32, pos2: u32) -> ASTExprList
Wraps isl_ast_expr_list_swap
.
Sourcepub fn set_ast_expr(self, index: i32, el: ASTExpr) -> ASTExprList
pub fn set_ast_expr(self, index: i32, el: ASTExpr) -> ASTExprList
Wraps isl_ast_expr_list_set_ast_expr
.
Sourcepub fn get_ast_expr(&self, index: i32) -> ASTExpr
pub fn get_ast_expr(&self, index: i32) -> ASTExpr
Wraps isl_ast_expr_list_get_ast_expr
.
Sourcepub fn concat(self, list2: ASTExprList) -> ASTExprList
pub fn concat(self, list2: ASTExprList) -> ASTExprList
Wraps isl_ast_expr_list_concat
.
Sourcepub fn n_ast_expr(&self) -> i32
pub fn n_ast_expr(&self) -> i32
Wraps isl_ast_expr_list_n_ast_expr
.
Sourcepub fn drop(self, first: u32, n: u32) -> ASTExprList
pub fn drop(self, first: u32, n: u32) -> ASTExprList
Wraps isl_ast_expr_list_drop
.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_ast_expr_list_free() on being dropped. (For internal use only.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ASTExprList
impl RefUnwindSafe for ASTExprList
impl Send for ASTExprList
impl Sync for ASTExprList
impl Unpin for ASTExprList
impl UnwindSafe for ASTExprList
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