pub struct Context {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}
Expand description
Wraps isl_ctx
.
Fields§
§ptr: uintptr_t
§should_free_on_drop: bool
Implementations§
Source§impl Context
impl Context
Sourcepub fn set_max_operations(&self, max_operations: u64)
pub fn set_max_operations(&self, max_operations: u64)
Wraps isl_ctx_set_max_operations
.
Sourcepub fn get_max_operations(&self) -> u64
pub fn get_max_operations(&self) -> u64
Wraps isl_ctx_get_max_operations
.
Sourcepub fn reset_operations(&self)
pub fn reset_operations(&self)
Wraps isl_ctx_reset_operations
.
Sourcepub fn last_error_msg(&self) -> &str
pub fn last_error_msg(&self) -> &str
Wraps isl_ctx_last_error_msg
.
Sourcepub fn last_error_file(&self) -> &str
pub fn last_error_file(&self) -> &str
Wraps isl_ctx_last_error_file
.
Sourcepub fn last_error_line(&self) -> i32
pub fn last_error_line(&self) -> i32
Wraps isl_ctx_last_error_line
.
Sourcepub fn reset_error(&self)
pub fn reset_error(&self)
Wraps isl_ctx_reset_error
.
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 Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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