pub struct CanvasKey(pub u64);Expand description
A stable, user-provided cache key for hosted canvas resources.
Callers should treat this as an identity key for a logical draw item that is stable across frames (e.g. “grid label #42”). The runtime mixes in scale-factor bits where needed, so the same key can be reused across DPI/zoom changes.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for CanvasKey
impl Eq for CanvasKey
impl StructuralPartialEq for CanvasKey
Auto Trait Implementations§
impl Freeze for CanvasKey
impl RefUnwindSafe for CanvasKey
impl Send for CanvasKey
impl Sync for CanvasKey
impl Unpin for CanvasKey
impl UnsafeUnpin for CanvasKey
impl UnwindSafe for CanvasKey
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