pub struct ConstraintList {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_constraint_list.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl ConstraintList
impl ConstraintList
Sourcepub fn add(self, el: Constraint) -> Result<ConstraintList, LibISLError>
pub fn add(self, el: Constraint) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_add.
Sourcepub fn alloc(ctx: &Context, n: i32) -> Result<ConstraintList, LibISLError>
pub fn alloc(ctx: &Context, n: i32) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_alloc.
Sourcepub fn clear(self) -> Result<ConstraintList, LibISLError>
pub fn clear(self) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_clear.
Sourcepub fn concat(
self,
list2: ConstraintList,
) -> Result<ConstraintList, LibISLError>
pub fn concat( self, list2: ConstraintList, ) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_concat.
Sourcepub fn copy(&self) -> Result<ConstraintList, LibISLError>
pub fn copy(&self) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_copy.
Sourcepub fn drop(self, first: u32, n: u32) -> Result<ConstraintList, LibISLError>
pub fn drop(self, first: u32, n: u32) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_drop.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_constraint_list_dump.
Sourcepub fn free(self) -> Result<ConstraintList, LibISLError>
pub fn free(self) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_free.
Sourcepub fn from_constraint(el: Constraint) -> Result<ConstraintList, LibISLError>
pub fn from_constraint(el: Constraint) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_from_constraint.
Sourcepub fn get_at(&self, index: i32) -> Result<Constraint, LibISLError>
pub fn get_at(&self, index: i32) -> Result<Constraint, LibISLError>
Wraps isl_constraint_list_get_at.
Sourcepub fn get_constraint(&self, index: i32) -> Result<Constraint, LibISLError>
pub fn get_constraint(&self, index: i32) -> Result<Constraint, LibISLError>
Wraps isl_constraint_list_get_constraint.
Sourcepub fn insert(
self,
pos: u32,
el: Constraint,
) -> Result<ConstraintList, LibISLError>
pub fn insert( self, pos: u32, el: Constraint, ) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_insert.
Sourcepub fn n_constraint(&self) -> Result<i32, LibISLError>
pub fn n_constraint(&self) -> Result<i32, LibISLError>
Wraps isl_constraint_list_n_constraint.
Sourcepub fn reverse(self) -> Result<ConstraintList, LibISLError>
pub fn reverse(self) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_reverse.
Sourcepub fn set_at(
self,
index: i32,
el: Constraint,
) -> Result<ConstraintList, LibISLError>
pub fn set_at( self, index: i32, el: Constraint, ) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_set_at.
Sourcepub fn set_constraint(
self,
index: i32,
el: Constraint,
) -> Result<ConstraintList, LibISLError>
pub fn set_constraint( self, index: i32, el: Constraint, ) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_set_constraint.
Sourcepub fn size(&self) -> Result<i32, LibISLError>
pub fn size(&self) -> Result<i32, LibISLError>
Wraps isl_constraint_list_size.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> Result<ConstraintList, LibISLError>
pub fn swap(self, pos1: u32, pos2: u32) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_list_swap.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_constraint_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_constraint_list_free() on being dropped. (For internal use only.)