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: boolImplementations§
Source§impl ASTExprList
impl ASTExprList
Sourcepub fn add(self, el: ASTExpr) -> Result<ASTExprList, LibISLError>
pub fn add(self, el: ASTExpr) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_add.
Sourcepub fn alloc(ctx: &Context, n: i32) -> Result<ASTExprList, LibISLError>
pub fn alloc(ctx: &Context, n: i32) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_alloc.
Sourcepub fn clear(self) -> Result<ASTExprList, LibISLError>
pub fn clear(self) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_clear.
Sourcepub fn concat(self, list2: ASTExprList) -> Result<ASTExprList, LibISLError>
pub fn concat(self, list2: ASTExprList) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_concat.
Sourcepub fn copy(&self) -> Result<ASTExprList, LibISLError>
pub fn copy(&self) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_copy.
Sourcepub fn drop(self, first: u32, n: u32) -> Result<ASTExprList, LibISLError>
pub fn drop(self, first: u32, n: u32) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_drop.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_ast_expr_list_dump.
Sourcepub fn free(self) -> Result<ASTExprList, LibISLError>
pub fn free(self) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_free.
Sourcepub fn from_ast_expr(el: ASTExpr) -> Result<ASTExprList, LibISLError>
pub fn from_ast_expr(el: ASTExpr) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_from_ast_expr.
Sourcepub fn get_ast_expr(&self, index: i32) -> Result<ASTExpr, LibISLError>
pub fn get_ast_expr(&self, index: i32) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_list_get_ast_expr.
Sourcepub fn get_at(&self, index: i32) -> Result<ASTExpr, LibISLError>
pub fn get_at(&self, index: i32) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_list_get_at.
Sourcepub fn insert(self, pos: u32, el: ASTExpr) -> Result<ASTExprList, LibISLError>
pub fn insert(self, pos: u32, el: ASTExpr) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_insert.
Sourcepub fn n_ast_expr(&self) -> Result<i32, LibISLError>
pub fn n_ast_expr(&self) -> Result<i32, LibISLError>
Wraps isl_ast_expr_list_n_ast_expr.
Sourcepub fn reverse(self) -> Result<ASTExprList, LibISLError>
pub fn reverse(self) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_reverse.
Sourcepub fn set_ast_expr(
self,
index: i32,
el: ASTExpr,
) -> Result<ASTExprList, LibISLError>
pub fn set_ast_expr( self, index: i32, el: ASTExpr, ) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_set_ast_expr.
Sourcepub fn set_at(self, index: i32, el: ASTExpr) -> Result<ASTExprList, LibISLError>
pub fn set_at(self, index: i32, el: ASTExpr) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_set_at.
Sourcepub fn size(&self) -> Result<i32, LibISLError>
pub fn size(&self) -> Result<i32, LibISLError>
Wraps isl_ast_expr_list_size.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> Result<ASTExprList, LibISLError>
pub fn swap(self, pos1: u32, pos2: u32) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_list_swap.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_ast_expr_list_to_str.
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