pub struct Id(/* private fields */);
Expand description
Unique ID used by widgets.
This represents a hash of the current stack of Ids used in ImGui + the
input provided. It is only used in a few places directly in the
codebase, but you can think of it as effectively allowing you to
run your Id hashing yourself. More often Ui::push_id
and the likes
are used instead.
Previously, in v0.7, this was erroneously constructed with From
implementations. Now, however, it is made from the Ui
object
directly, with a few deprecated helper methods here.
Implementations§
Trait Implementations§
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
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