ASTNode

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 alloc_user(expr: ASTExpr) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_alloc_user.

Source

pub fn block_from_children(list: ASTNodeList) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_block_from_children.

Source

pub fn block_get_children(&self) -> Result<ASTNodeList, LibISLError>

Wraps isl_ast_node_block_get_children.

Source

pub fn copy(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_copy.

Source

pub fn dump(&self) -> Result<(), LibISLError>

Wraps isl_ast_node_dump.

Source

pub fn for_get_body(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_for_get_body.

Source

pub fn for_get_cond(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_for_get_cond.

Source

pub fn for_get_inc(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_for_get_inc.

Source

pub fn for_get_init(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_for_get_init.

Source

pub fn for_get_iterator(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_for_get_iterator.

Source

pub fn for_is_degenerate(&self) -> Result<bool, LibISLError>

Wraps isl_ast_node_for_is_degenerate.

Source

pub fn free(self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_free.

Source

pub fn get_annotation(&self) -> Result<Id, LibISLError>

Wraps isl_ast_node_get_annotation.

Source

pub fn get_ctx(&self) -> Context

Wraps isl_ast_node_get_ctx.

Source

pub fn get_type(&self) -> Result<ASTNodeType, LibISLError>

Wraps isl_ast_node_get_type.

Source

pub fn if_get_cond(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_if_get_cond.

Source

pub fn if_get_else(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_if_get_else.

Source

pub fn if_get_else_node(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_if_get_else_node.

Source

pub fn if_get_then(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_if_get_then.

Source

pub fn if_get_then_node(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_if_get_then_node.

Source

pub fn if_has_else(&self) -> Result<bool, LibISLError>

Wraps isl_ast_node_if_has_else.

Source

pub fn if_has_else_node(&self) -> Result<bool, LibISLError>

Wraps isl_ast_node_if_has_else_node.

Source

pub fn mark_get_id(&self) -> Result<Id, LibISLError>

Wraps isl_ast_node_mark_get_id.

Source

pub fn mark_get_node(&self) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_mark_get_node.

Source

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

Wraps isl_ast_node_print_macros.

Source

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

Wraps isl_ast_node_set_annotation.

Source

pub fn to_C_str(&self) -> Result<&str, LibISLError>

Wraps isl_ast_node_to_C_str.

Source

pub fn to_list(self) -> Result<ASTNodeList, LibISLError>

Wraps isl_ast_node_to_list.

Source

pub fn to_str(&self) -> Result<&str, LibISLError>

Wraps isl_ast_node_to_str.

Source

pub fn user_from_expr(expr: ASTExpr) -> Result<ASTNode, LibISLError>

Wraps isl_ast_node_user_from_expr.

Source

pub fn user_get_expr(&self) -> Result<ASTExpr, LibISLError>

Wraps isl_ast_node_user_get_expr.

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.