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: bool
Implementations§
Source§impl Constraint
impl Constraint
Sourcepub fn alloc_equality(ls: LocalSpace) -> Constraint
pub fn alloc_equality(ls: LocalSpace) -> Constraint
Wraps isl_constraint_alloc_equality
.
Sourcepub fn alloc_inequality(ls: LocalSpace) -> Constraint
pub fn alloc_inequality(ls: LocalSpace) -> Constraint
Wraps isl_constraint_alloc_inequality
.
Sourcepub fn copy(&self) -> Constraint
pub fn copy(&self) -> Constraint
Wraps isl_constraint_copy
.
Sourcepub fn free(self) -> Constraint
pub fn free(self) -> Constraint
Wraps isl_constraint_free
.
Sourcepub fn is_equal(&self, constraint2: &Constraint) -> i32
pub fn is_equal(&self, constraint2: &Constraint) -> i32
Wraps isl_constraint_is_equal
.
Sourcepub fn get_local_space(&self) -> LocalSpace
pub fn get_local_space(&self) -> LocalSpace
Wraps isl_constraint_get_local_space
.
Sourcepub fn involves_dims(&self, type_: DimType, first: u32, n: u32) -> bool
pub fn involves_dims(&self, type_: DimType, first: u32, n: u32) -> bool
Wraps isl_constraint_involves_dims
.
Sourcepub fn get_dim_name(&self, type_: DimType, pos: u32) -> &str
pub fn get_dim_name(&self, type_: DimType, pos: u32) -> &str
Wraps isl_constraint_get_dim_name
.
Sourcepub fn get_constant_val(&self) -> Val
pub fn get_constant_val(&self) -> Val
Wraps isl_constraint_get_constant_val
.
Sourcepub fn get_coefficient_val(&self, type_: DimType, pos: i32) -> Val
pub fn get_coefficient_val(&self, type_: DimType, pos: i32) -> Val
Wraps isl_constraint_get_coefficient_val
.
Sourcepub fn set_constant_si(self, v: i32) -> Constraint
pub fn set_constant_si(self, v: i32) -> Constraint
Wraps isl_constraint_set_constant_si
.
Sourcepub fn set_constant_val(self, v: Val) -> Constraint
pub fn set_constant_val(self, v: Val) -> Constraint
Wraps isl_constraint_set_constant_val
.
Sourcepub fn set_coefficient_si(self, type_: DimType, pos: i32, v: i32) -> Constraint
pub fn set_coefficient_si(self, type_: DimType, pos: i32, v: i32) -> Constraint
Wraps isl_constraint_set_coefficient_si
.
Sourcepub fn set_coefficient_val(self, type_: DimType, pos: i32, v: Val) -> Constraint
pub fn set_coefficient_val(self, type_: DimType, pos: i32, v: Val) -> Constraint
Wraps isl_constraint_set_coefficient_val
.
Sourcepub fn negate(self) -> Constraint
pub fn negate(self) -> Constraint
Wraps isl_constraint_negate
.
Sourcepub fn is_equality(&self) -> bool
pub fn is_equality(&self) -> bool
Wraps isl_constraint_is_equality
.
Sourcepub fn is_div_constraint(&self) -> bool
pub fn is_div_constraint(&self) -> bool
Wraps isl_constraint_is_div_constraint
.
Sourcepub fn is_lower_bound(&self, type_: DimType, pos: u32) -> bool
pub fn is_lower_bound(&self, type_: DimType, pos: u32) -> bool
Wraps isl_constraint_is_lower_bound
.
Sourcepub fn is_upper_bound(&self, type_: DimType, pos: u32) -> bool
pub fn is_upper_bound(&self, type_: DimType, pos: u32) -> bool
Wraps isl_constraint_is_upper_bound
.
Sourcepub fn plain_cmp(&self, c2: &Constraint) -> i32
pub fn plain_cmp(&self, c2: &Constraint) -> i32
Wraps isl_constraint_plain_cmp
.
Sourcepub fn cmp_last_non_zero(&self, c2: &Constraint) -> i32
pub fn cmp_last_non_zero(&self, c2: &Constraint) -> i32
Wraps isl_constraint_cmp_last_non_zero
.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_xxx_free() on being dropped. (For internal use only.)