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: bool
Implementations§
Source§impl ConstraintList
impl ConstraintList
Sourcepub fn insert(self, pos: u32, el: Constraint) -> ConstraintList
pub fn insert(self, pos: u32, el: Constraint) -> ConstraintList
Wraps isl_constraint_list_insert
.
Sourcepub fn n_constraint(&self) -> i32
pub fn n_constraint(&self) -> i32
Wraps isl_constraint_list_n_constraint
.
Sourcepub fn add(self, el: Constraint) -> ConstraintList
pub fn add(self, el: Constraint) -> ConstraintList
Wraps isl_constraint_list_add
.
Sourcepub fn from_constraint(el: Constraint) -> ConstraintList
pub fn from_constraint(el: Constraint) -> ConstraintList
Wraps isl_constraint_list_from_constraint
.
Sourcepub fn set_at(self, index: i32, el: Constraint) -> ConstraintList
pub fn set_at(self, index: i32, el: Constraint) -> ConstraintList
Wraps isl_constraint_list_set_at
.
Sourcepub fn set_constraint(self, index: i32, el: Constraint) -> ConstraintList
pub fn set_constraint(self, index: i32, el: Constraint) -> ConstraintList
Wraps isl_constraint_list_set_constraint
.
Sourcepub fn reverse(self) -> ConstraintList
pub fn reverse(self) -> ConstraintList
Wraps isl_constraint_list_reverse
.
Sourcepub fn clear(self) -> ConstraintList
pub fn clear(self) -> ConstraintList
Wraps isl_constraint_list_clear
.
Sourcepub fn get_constraint(&self, index: i32) -> Constraint
pub fn get_constraint(&self, index: i32) -> Constraint
Wraps isl_constraint_list_get_constraint
.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> ConstraintList
pub fn swap(self, pos1: u32, pos2: u32) -> ConstraintList
Wraps isl_constraint_list_swap
.
Sourcepub fn alloc(ctx: &Context, n: i32) -> ConstraintList
pub fn alloc(ctx: &Context, n: i32) -> ConstraintList
Wraps isl_constraint_list_alloc
.
Sourcepub fn concat(self, list2: ConstraintList) -> ConstraintList
pub fn concat(self, list2: ConstraintList) -> ConstraintList
Wraps isl_constraint_list_concat
.
Sourcepub fn get_at(&self, index: i32) -> Constraint
pub fn get_at(&self, index: i32) -> Constraint
Wraps isl_constraint_list_get_at
.
Sourcepub fn copy(&self) -> ConstraintList
pub fn copy(&self) -> ConstraintList
Wraps isl_constraint_list_copy
.
Sourcepub fn drop(self, first: u32, n: u32) -> ConstraintList
pub fn drop(self, first: u32, n: u32) -> ConstraintList
Wraps isl_constraint_list_drop
.
Sourcepub fn free(self) -> ConstraintList
pub fn free(self) -> ConstraintList
Wraps isl_constraint_list_free
.
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.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstraintList
impl RefUnwindSafe for ConstraintList
impl Send for ConstraintList
impl Sync for ConstraintList
impl Unpin for ConstraintList
impl UnwindSafe for ConstraintList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more