Struct webrender_api::display_item::SpatialTreeItemKey
source · #[repr(C)]pub struct SpatialTreeItemKey {
key0: u64,
key1: u64,
}
Expand description
Defines a caller provided key that is unique for a given spatial node, and is stable across display lists. WR uses this to determine which spatial nodes are added / removed for a new display list. The content itself is arbitrary and opaque to WR, the only thing that matters is that it’s unique and stable between display lists.
Fields§
§key0: u64
§key1: u64
Implementations§
Trait Implementations§
source§impl Clone for SpatialTreeItemKey
impl Clone for SpatialTreeItemKey
source§fn clone(&self) -> SpatialTreeItemKey
fn clone(&self) -> SpatialTreeItemKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpatialTreeItemKey
impl Debug for SpatialTreeItemKey
source§impl Default for SpatialTreeItemKey
impl Default for SpatialTreeItemKey
source§fn default() -> SpatialTreeItemKey
fn default() -> SpatialTreeItemKey
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SpatialTreeItemKey
impl<'de> Deserialize<'de> for SpatialTreeItemKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SpatialTreeItemKey
impl Hash for SpatialTreeItemKey
source§impl PartialEq for SpatialTreeItemKey
impl PartialEq for SpatialTreeItemKey
source§fn eq(&self, other: &SpatialTreeItemKey) -> bool
fn eq(&self, other: &SpatialTreeItemKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for SpatialTreeItemKey
impl Peek for SpatialTreeItemKey
source§impl Poke for SpatialTreeItemKey
impl Poke for SpatialTreeItemKey
source§impl Serialize for SpatialTreeItemKey
impl Serialize for SpatialTreeItemKey
impl Copy for SpatialTreeItemKey
impl Eq for SpatialTreeItemKey
impl StructuralPartialEq for SpatialTreeItemKey
Auto Trait Implementations§
impl Freeze for SpatialTreeItemKey
impl RefUnwindSafe for SpatialTreeItemKey
impl Send for SpatialTreeItemKey
impl Sync for SpatialTreeItemKey
impl Unpin for SpatialTreeItemKey
impl UnwindSafe for SpatialTreeItemKey
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