pub struct ValList {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_val_list.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl ValList
impl ValList
Sourcepub fn clear(self) -> Result<ValList, LibISLError>
pub fn clear(self) -> Result<ValList, LibISLError>
Wraps isl_val_list_clear.
Sourcepub fn copy(&self) -> Result<ValList, LibISLError>
pub fn copy(&self) -> Result<ValList, LibISLError>
Wraps isl_val_list_copy.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_val_list_dump.
Sourcepub fn free(self) -> Result<ValList, LibISLError>
pub fn free(self) -> Result<ValList, LibISLError>
Wraps isl_val_list_free.
Sourcepub fn insert(self, pos: u32, el: Val) -> Result<ValList, LibISLError>
pub fn insert(self, pos: u32, el: Val) -> Result<ValList, LibISLError>
Wraps isl_val_list_insert.
Sourcepub fn n_val(&self) -> Result<i32, LibISLError>
pub fn n_val(&self) -> Result<i32, LibISLError>
Wraps isl_val_list_n_val.
Sourcepub fn read_from_str(ctx: &Context, str_: &str) -> Result<ValList, LibISLError>
pub fn read_from_str(ctx: &Context, str_: &str) -> Result<ValList, LibISLError>
Wraps isl_val_list_read_from_str.
Sourcepub fn reverse(self) -> Result<ValList, LibISLError>
pub fn reverse(self) -> Result<ValList, LibISLError>
Wraps isl_val_list_reverse.
Sourcepub fn set_at(self, index: i32, el: Val) -> Result<ValList, LibISLError>
pub fn set_at(self, index: i32, el: Val) -> Result<ValList, LibISLError>
Wraps isl_val_list_set_at.
Sourcepub fn set_val(self, index: i32, el: Val) -> Result<ValList, LibISLError>
pub fn set_val(self, index: i32, el: Val) -> Result<ValList, LibISLError>
Wraps isl_val_list_set_val.
Sourcepub fn size(&self) -> Result<i32, LibISLError>
pub fn size(&self) -> Result<i32, LibISLError>
Wraps isl_val_list_size.
Sourcepub fn swap(self, pos1: u32, pos2: u32) -> Result<ValList, LibISLError>
pub fn swap(self, pos1: u32, pos2: u32) -> Result<ValList, LibISLError>
Wraps isl_val_list_swap.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_val_list_to_str.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_val_list_free() on being dropped. (For internal use only.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValList
impl RefUnwindSafe for ValList
impl Send for ValList
impl Sync for ValList
impl Unpin for ValList
impl UnwindSafe for ValList
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