Struct ASTNode

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

Wraps isl_ast_node.

Fields§

§ptr: uintptr_t§should_free_on_drop: bool

Implementations§

Source§

impl ASTNode

Source

pub fn for_is_degenerate(&self) -> bool

Wraps isl_ast_node_for_is_degenerate.

Source

pub fn for_get_iterator(&self) -> ASTExpr

Wraps isl_ast_node_for_get_iterator.

Source

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

Wraps isl_ast_node_print_macros.

Source

pub fn free(self) -> ASTNode

Wraps isl_ast_node_free.

Source

pub fn if_get_else(&self) -> ASTNode

Wraps isl_ast_node_if_get_else.

Source

pub fn if_has_else_node(&self) -> bool

Wraps isl_ast_node_if_has_else_node.

Source

pub fn to_str(&self) -> &str

Wraps isl_ast_node_to_str.

Source

pub fn block_from_children(list: ASTNodeList) -> ASTNode

Wraps isl_ast_node_block_from_children.

Source

pub fn block_get_children(&self) -> ASTNodeList

Wraps isl_ast_node_block_get_children.

Source

pub fn if_get_then(&self) -> ASTNode

Wraps isl_ast_node_if_get_then.

Source

pub fn list_insert(list: ASTNodeList, pos: u32, el: ASTNode) -> ASTNodeList

Wraps isl_ast_node_list_insert.

Source

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

Wraps isl_ast_node_list_get_ctx.

Source

pub fn list_add(list: ASTNodeList, el: ASTNode) -> ASTNodeList

Wraps isl_ast_node_list_add.

Source

pub fn list_reverse(list: ASTNodeList) -> ASTNodeList

Wraps isl_ast_node_list_reverse.

Source

pub fn list_get_ast_node(list: &ASTNodeList, index: i32) -> ASTNode

Wraps isl_ast_node_list_get_ast_node.

Source

pub fn list_get_at(list: &ASTNodeList, index: i32) -> ASTNode

Wraps isl_ast_node_list_get_at.

Source

pub fn list_from_ast_node(self) -> ASTNodeList

Wraps isl_ast_node_list_from_ast_node.

Source

pub fn if_get_cond(&self) -> ASTExpr

Wraps isl_ast_node_if_get_cond.

Source

pub fn for_get_body(&self) -> ASTNode

Wraps isl_ast_node_for_get_body.

Source

pub fn for_get_inc(&self) -> ASTExpr

Wraps isl_ast_node_for_get_inc.

Source

pub fn list_set_ast_node( list: ASTNodeList, index: i32, el: ASTNode, ) -> ASTNodeList

Wraps isl_ast_node_list_set_ast_node.

Source

pub fn mark_get_id(&self) -> Id

Wraps isl_ast_node_mark_get_id.

Source

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

Wraps isl_ast_node_list_drop.

Source

pub fn get_type(&self) -> ASTNodeType

Wraps isl_ast_node_get_type.

Source

pub fn set_annotation(self, annotation: Id) -> ASTNode

Wraps isl_ast_node_set_annotation.

Source

pub fn list_n_ast_node(list: &ASTNodeList) -> i32

Wraps isl_ast_node_list_n_ast_node.

Source

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

Wraps isl_ast_node_list_swap.

Source

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

Wraps isl_ast_node_list_concat.

Source

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

Wraps isl_ast_node_list_copy.

Source

pub fn mark_get_node(&self) -> ASTNode

Wraps isl_ast_node_mark_get_node.

Source

pub fn list_dump(list: &ASTNodeList)

Wraps isl_ast_node_list_dump.

Source

pub fn if_get_then_node(&self) -> ASTNode

Wraps isl_ast_node_if_get_then_node.

Source

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

Wraps isl_ast_node_list_to_str.

Source

pub fn dump(&self)

Wraps isl_ast_node_dump.

Source

pub fn alloc_user(expr: ASTExpr) -> ASTNode

Wraps isl_ast_node_alloc_user.

Source

pub fn for_get_cond(&self) -> ASTExpr

Wraps isl_ast_node_for_get_cond.

Source

pub fn if_get_else_node(&self) -> ASTNode

Wraps isl_ast_node_if_get_else_node.

Source

pub fn user_from_expr(expr: ASTExpr) -> ASTNode

Wraps isl_ast_node_user_from_expr.

Source

pub fn list_free(list: ASTNodeList) -> ASTNodeList

Wraps isl_ast_node_list_free.

Source

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

Wraps isl_ast_node_list_alloc.

Source

pub fn to_C_str(&self) -> &str

Wraps isl_ast_node_to_C_str.

Source

pub fn user_get_expr(&self) -> ASTExpr

Wraps isl_ast_node_user_get_expr.

Source

pub fn get_annotation(&self) -> Id

Wraps isl_ast_node_get_annotation.

Source

pub fn list_set_at(list: ASTNodeList, index: i32, el: ASTNode) -> ASTNodeList

Wraps isl_ast_node_list_set_at.

Source

pub fn if_has_else(&self) -> bool

Wraps isl_ast_node_if_has_else.

Source

pub fn list_clear(list: ASTNodeList) -> ASTNodeList

Wraps isl_ast_node_list_clear.

Source

pub fn get_ctx(&self) -> Context

Wraps isl_ast_node_get_ctx.

Source

pub fn for_get_init(&self) -> ASTExpr

Wraps isl_ast_node_for_get_init.

Source

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

Wraps isl_ast_node_list_size.

Source

pub fn copy(&self) -> ASTNode

Wraps isl_ast_node_copy.

Source

pub fn to_list(self) -> ASTNodeList

Wraps isl_ast_node_to_list.

Source

pub fn do_not_free_on_drop(&mut self)

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

Trait Implementations§

Source§

impl Drop for ASTNode

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.