pub struct ASTNodeList {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_ast_node_list.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl ASTNodeList
impl ASTNodeList
Sourcepub fn add(self, el: ASTNode) -> Result<ASTNodeList, LibISLError>
pub fn add(self, el: ASTNode) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_add.
Sourcepub fn alloc(ctx: &Context, n: i32) -> Result<ASTNodeList, LibISLError>
pub fn alloc(ctx: &Context, n: i32) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_alloc.
Sourcepub fn clear(self) -> Result<ASTNodeList, LibISLError>
pub fn clear(self) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_clear.
Sourcepub fn concat(self, list2: ASTNodeList) -> Result<ASTNodeList, LibISLError>
pub fn concat(self, list2: ASTNodeList) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_concat.
Sourcepub fn copy(&self) -> Result<ASTNodeList, LibISLError>
pub fn copy(&self) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_copy.
Sourcepub fn drop(self, first: u32, n: u32) -> Result<ASTNodeList, LibISLError>
pub fn drop(self, first: u32, n: u32) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_drop.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_ast_node_list_dump.
Sourcepub fn free(self) -> Result<ASTNodeList, LibISLError>
pub fn free(self) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_free.
Sourcepub fn from_ast_node(el: ASTNode) -> Result<ASTNodeList, LibISLError>
pub fn from_ast_node(el: ASTNode) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_from_ast_node.
Sourcepub fn get_ast_node(&self, index: i32) -> Result<ASTNode, LibISLError>
pub fn get_ast_node(&self, index: i32) -> Result<ASTNode, LibISLError>
Wraps isl_ast_node_list_get_ast_node.
Sourcepub fn get_at(&self, index: i32) -> Result<ASTNode, LibISLError>
pub fn get_at(&self, index: i32) -> Result<ASTNode, LibISLError>
Wraps isl_ast_node_list_get_at.
Sourcepub fn insert(self, pos: u32, el: ASTNode) -> Result<ASTNodeList, LibISLError>
pub fn insert(self, pos: u32, el: ASTNode) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_insert.
Sourcepub fn n_ast_node(&self) -> Result<i32, LibISLError>
pub fn n_ast_node(&self) -> Result<i32, LibISLError>
Wraps isl_ast_node_list_n_ast_node.
Sourcepub fn reverse(self) -> Result<ASTNodeList, LibISLError>
pub fn reverse(self) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_reverse.
Sourcepub fn set_ast_node(
self,
index: i32,
el: ASTNode,
) -> Result<ASTNodeList, LibISLError>
pub fn set_ast_node( self, index: i32, el: ASTNode, ) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_set_ast_node.
Sourcepub fn set_at(self, index: i32, el: ASTNode) -> Result<ASTNodeList, LibISLError>
pub fn set_at(self, index: i32, el: ASTNode) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_set_at.
Sourcepub fn size(&self) -> Result<i32, LibISLError>
pub fn size(&self) -> Result<i32, LibISLError>
Wraps isl_ast_node_list_size.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> Result<ASTNodeList, LibISLError>
pub fn swap(self, pos1: u32, pos2: u32) -> Result<ASTNodeList, LibISLError>
Wraps isl_ast_node_list_swap.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_ast_node_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_node_list_free() on being dropped. (For internal use only.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ASTNodeList
impl RefUnwindSafe for ASTNodeList
impl Send for ASTNodeList
impl Sync for ASTNodeList
impl Unpin for ASTNodeList
impl UnwindSafe for ASTNodeList
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