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: bool
Implementations§
Source§impl ASTNodeList
impl ASTNodeList
Sourcepub fn insert(self, pos: u32, el: ASTNode) -> ASTNodeList
pub fn insert(self, pos: u32, el: ASTNode) -> ASTNodeList
Wraps isl_ast_node_list_insert
.
Sourcepub fn add(self, el: ASTNode) -> ASTNodeList
pub fn add(self, el: ASTNode) -> ASTNodeList
Wraps isl_ast_node_list_add
.
Sourcepub fn reverse(self) -> ASTNodeList
pub fn reverse(self) -> ASTNodeList
Wraps isl_ast_node_list_reverse
.
Sourcepub fn get_ast_node(&self, index: i32) -> ASTNode
pub fn get_ast_node(&self, index: i32) -> ASTNode
Wraps isl_ast_node_list_get_ast_node
.
Sourcepub fn from_ast_node(el: ASTNode) -> ASTNodeList
pub fn from_ast_node(el: ASTNode) -> ASTNodeList
Wraps isl_ast_node_list_from_ast_node
.
Sourcepub fn set_ast_node(self, index: i32, el: ASTNode) -> ASTNodeList
pub fn set_ast_node(self, index: i32, el: ASTNode) -> ASTNodeList
Wraps isl_ast_node_list_set_ast_node
.
Sourcepub fn drop(self, first: u32, n: u32) -> ASTNodeList
pub fn drop(self, first: u32, n: u32) -> ASTNodeList
Wraps isl_ast_node_list_drop
.
Sourcepub fn n_ast_node(&self) -> i32
pub fn n_ast_node(&self) -> i32
Wraps isl_ast_node_list_n_ast_node
.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> ASTNodeList
pub fn swap(self, pos1: u32, pos2: u32) -> ASTNodeList
Wraps isl_ast_node_list_swap
.
Sourcepub fn concat(self, list2: ASTNodeList) -> ASTNodeList
pub fn concat(self, list2: ASTNodeList) -> ASTNodeList
Wraps isl_ast_node_list_concat
.
Sourcepub fn copy(&self) -> ASTNodeList
pub fn copy(&self) -> ASTNodeList
Wraps isl_ast_node_list_copy
.
Sourcepub fn free(self) -> ASTNodeList
pub fn free(self) -> ASTNodeList
Wraps isl_ast_node_list_free
.
Sourcepub fn alloc(ctx: &Context, n: i32) -> ASTNodeList
pub fn alloc(ctx: &Context, n: i32) -> ASTNodeList
Wraps isl_ast_node_list_alloc
.
Sourcepub fn set_at(self, index: i32, el: ASTNode) -> ASTNodeList
pub fn set_at(self, index: i32, el: ASTNode) -> ASTNodeList
Wraps isl_ast_node_list_set_at
.
Sourcepub fn clear(self) -> ASTNodeList
pub fn clear(self) -> ASTNodeList
Wraps isl_ast_node_list_clear
.
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