pub struct Constraint {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_constraint.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl Constraint
impl Constraint
Sourcepub fn alloc_equality(ls: LocalSpace) -> Result<Constraint, LibISLError>
pub fn alloc_equality(ls: LocalSpace) -> Result<Constraint, LibISLError>
Wraps isl_constraint_alloc_equality.
Sourcepub fn alloc_inequality(ls: LocalSpace) -> Result<Constraint, LibISLError>
pub fn alloc_inequality(ls: LocalSpace) -> Result<Constraint, LibISLError>
Wraps isl_constraint_alloc_inequality.
Sourcepub fn cmp_last_non_zero(&self, c2: &Constraint) -> Result<i32, LibISLError>
pub fn cmp_last_non_zero(&self, c2: &Constraint) -> Result<i32, LibISLError>
Wraps isl_constraint_cmp_last_non_zero.
Sourcepub fn copy(&self) -> Result<Constraint, LibISLError>
pub fn copy(&self) -> Result<Constraint, LibISLError>
Wraps isl_constraint_copy.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_constraint_dump.
Sourcepub fn free(self) -> Result<Constraint, LibISLError>
pub fn free(self) -> Result<Constraint, LibISLError>
Wraps isl_constraint_free.
Sourcepub fn get_aff(&self) -> Result<Aff, LibISLError>
pub fn get_aff(&self) -> Result<Aff, LibISLError>
Wraps isl_constraint_get_aff.
Sourcepub fn get_bound(&self, type_: DimType, pos: i32) -> Result<Aff, LibISLError>
pub fn get_bound(&self, type_: DimType, pos: i32) -> Result<Aff, LibISLError>
Wraps isl_constraint_get_bound.
Sourcepub fn get_coefficient_val(
&self,
type_: DimType,
pos: i32,
) -> Result<Val, LibISLError>
pub fn get_coefficient_val( &self, type_: DimType, pos: i32, ) -> Result<Val, LibISLError>
Wraps isl_constraint_get_coefficient_val.
Sourcepub fn get_constant_val(&self) -> Result<Val, LibISLError>
pub fn get_constant_val(&self) -> Result<Val, LibISLError>
Wraps isl_constraint_get_constant_val.
Sourcepub fn get_dim_name(
&self,
type_: DimType,
pos: u32,
) -> Result<&str, LibISLError>
pub fn get_dim_name( &self, type_: DimType, pos: u32, ) -> Result<&str, LibISLError>
Wraps isl_constraint_get_dim_name.
Sourcepub fn get_local_space(&self) -> Result<LocalSpace, LibISLError>
pub fn get_local_space(&self) -> Result<LocalSpace, LibISLError>
Wraps isl_constraint_get_local_space.
Sourcepub fn get_space(&self) -> Result<Space, LibISLError>
pub fn get_space(&self) -> Result<Space, LibISLError>
Wraps isl_constraint_get_space.
Sourcepub fn involves_dims(
&self,
type_: DimType,
first: u32,
n: u32,
) -> Result<bool, LibISLError>
pub fn involves_dims( &self, type_: DimType, first: u32, n: u32, ) -> Result<bool, LibISLError>
Wraps isl_constraint_involves_dims.
Sourcepub fn is_div_constraint(&self) -> Result<bool, LibISLError>
pub fn is_div_constraint(&self) -> Result<bool, LibISLError>
Wraps isl_constraint_is_div_constraint.
Sourcepub fn is_equal(&self, constraint2: &Constraint) -> Result<i32, LibISLError>
pub fn is_equal(&self, constraint2: &Constraint) -> Result<i32, LibISLError>
Wraps isl_constraint_is_equal.
Sourcepub fn is_equality(&self) -> Result<bool, LibISLError>
pub fn is_equality(&self) -> Result<bool, LibISLError>
Wraps isl_constraint_is_equality.
Sourcepub fn is_lower_bound(
&self,
type_: DimType,
pos: u32,
) -> Result<bool, LibISLError>
pub fn is_lower_bound( &self, type_: DimType, pos: u32, ) -> Result<bool, LibISLError>
Wraps isl_constraint_is_lower_bound.
Sourcepub fn is_upper_bound(
&self,
type_: DimType,
pos: u32,
) -> Result<bool, LibISLError>
pub fn is_upper_bound( &self, type_: DimType, pos: u32, ) -> Result<bool, LibISLError>
Wraps isl_constraint_is_upper_bound.
Sourcepub fn negate(self) -> Result<Constraint, LibISLError>
pub fn negate(self) -> Result<Constraint, LibISLError>
Wraps isl_constraint_negate.
Sourcepub fn plain_cmp(&self, c2: &Constraint) -> Result<i32, LibISLError>
pub fn plain_cmp(&self, c2: &Constraint) -> Result<i32, LibISLError>
Wraps isl_constraint_plain_cmp.
Sourcepub fn set_coefficient_si(
self,
type_: DimType,
pos: i32,
v: i32,
) -> Result<Constraint, LibISLError>
pub fn set_coefficient_si( self, type_: DimType, pos: i32, v: i32, ) -> Result<Constraint, LibISLError>
Wraps isl_constraint_set_coefficient_si.
Sourcepub fn set_coefficient_val(
self,
type_: DimType,
pos: i32,
v: Val,
) -> Result<Constraint, LibISLError>
pub fn set_coefficient_val( self, type_: DimType, pos: i32, v: Val, ) -> Result<Constraint, LibISLError>
Wraps isl_constraint_set_coefficient_val.
Sourcepub fn set_constant_si(self, v: i32) -> Result<Constraint, LibISLError>
pub fn set_constant_si(self, v: i32) -> Result<Constraint, LibISLError>
Wraps isl_constraint_set_constant_si.
Sourcepub fn set_constant_val(self, v: Val) -> Result<Constraint, LibISLError>
pub fn set_constant_val(self, v: Val) -> Result<Constraint, LibISLError>
Wraps isl_constraint_set_constant_val.
Sourcepub fn to_list(self) -> Result<ConstraintList, LibISLError>
pub fn to_list(self) -> Result<ConstraintList, LibISLError>
Wraps isl_constraint_to_list.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_constraint_free() on being dropped. (For internal use only.)