pub struct Id {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_id.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl Id
impl Id
Sourcepub fn copy(&self) -> Result<Id, LibISLError>
pub fn copy(&self) -> Result<Id, LibISLError>
Wraps isl_id_copy.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_id_dump.
Sourcepub fn free(self) -> Result<Id, LibISLError>
pub fn free(self) -> Result<Id, LibISLError>
Wraps isl_id_free.
Sourcepub fn get_free_user(&self) -> Result<(), LibISLError>
pub fn get_free_user(&self) -> Result<(), LibISLError>
Wraps isl_id_get_free_user.
Sourcepub fn get_hash(&self) -> Result<u32, LibISLError>
pub fn get_hash(&self) -> Result<u32, LibISLError>
Wraps isl_id_get_hash.
Sourcepub fn get_name(&self) -> Result<&str, LibISLError>
pub fn get_name(&self) -> Result<&str, LibISLError>
Wraps isl_id_get_name.
Sourcepub fn read_from_str(ctx: &Context, str_: &str) -> Result<Id, LibISLError>
pub fn read_from_str(ctx: &Context, str_: &str) -> Result<Id, LibISLError>
Wraps isl_id_read_from_str.
Sourcepub fn to_list(self) -> Result<IdList, LibISLError>
pub fn to_list(self) -> Result<IdList, LibISLError>
Wraps isl_id_to_list.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_id_to_str.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_id_free() on being dropped. (For internal use only.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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