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: bool
Implementations§
Source§impl Id
impl Id
Sourcepub fn read_from_str(ctx: &Context, str_: &str) -> Id
pub fn read_from_str(ctx: &Context, str_: &str) -> Id
Wraps isl_id_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 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