pub struct Term {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_term.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl Term
impl Term
Sourcepub fn copy(&self) -> Result<Term, LibISLError>
pub fn copy(&self) -> Result<Term, LibISLError>
Wraps isl_term_copy.
Sourcepub fn free(self) -> Result<Term, LibISLError>
pub fn free(self) -> Result<Term, LibISLError>
Wraps isl_term_free.
Sourcepub fn get_coefficient_val(&self) -> Result<Val, LibISLError>
pub fn get_coefficient_val(&self) -> Result<Val, LibISLError>
Wraps isl_term_get_coefficient_val.
Sourcepub fn get_exp(&self, type_: DimType, pos: u32) -> Result<i32, LibISLError>
pub fn get_exp(&self, type_: DimType, pos: u32) -> Result<i32, LibISLError>
Wraps isl_term_get_exp.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_term_free() on being dropped. (For internal use only.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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