pub struct Val {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}
Expand description
Wraps isl_val
.
Fields§
§ptr: uintptr_t
§should_free_on_drop: bool
Implementations§
Source§impl Val
impl Val
Sourcepub fn int_from_si(ctx: &Context, i: i64) -> Val
pub fn int_from_si(ctx: &Context, i: i64) -> Val
Wraps isl_val_int_from_si
.
Sourcepub fn int_from_ui(ctx: &Context, u: u64) -> Val
pub fn int_from_ui(ctx: &Context, u: u64) -> Val
Wraps isl_val_int_from_ui
.
Sourcepub fn get_num_si(&self) -> i64
pub fn get_num_si(&self) -> i64
Wraps isl_val_get_num_si
.
Sourcepub fn get_den_si(&self) -> i64
pub fn get_den_si(&self) -> i64
Wraps isl_val_get_den_si
.
Sourcepub fn get_den_val(&self) -> Val
pub fn get_den_val(&self) -> Val
Wraps isl_val_get_den_val
.
Sourcepub fn n_abs_num_chunks(&self, size: usize) -> i32
pub fn n_abs_num_chunks(&self, size: usize) -> i32
Wraps isl_val_n_abs_num_chunks
.
Sourcepub fn is_neginfty(&self) -> bool
pub fn is_neginfty(&self) -> bool
Wraps isl_val_is_neginfty
.
Sourcepub fn is_divisible_by(&self, v2: &Val) -> bool
pub fn is_divisible_by(&self, v2: &Val) -> bool
Wraps isl_val_is_divisible_by
.
Sourcepub fn read_from_str(ctx: &Context, str_: &str) -> Val
pub fn read_from_str(ctx: &Context, str_: &str) -> Val
Wraps isl_val_read_from_str
.
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.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Val
impl RefUnwindSafe for Val
impl Send for Val
impl Sync for Val
impl Unpin for Val
impl UnwindSafe for Val
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