Struct webrender::spatial_node::SpatialNodeUid
source · pub struct SpatialNodeUid {
pub kind: SpatialNodeUidKind,
pub pipeline_id: PipelineId,
pub instance_id: PipelineInstanceId,
}
Expand description
A unique identifier for a spatial node, that is stable across display lists
Fields§
§kind: SpatialNodeUidKind
The unique key for a given pipeline for this uid
pipeline_id: PipelineId
Pipeline id to namespace key kinds
instance_id: PipelineInstanceId
Instance of this pipeline id
Implementations§
source§impl SpatialNodeUid
impl SpatialNodeUid
pub fn root() -> Self
pub fn root_scroll_frame( pipeline_id: PipelineId, instance_id: PipelineInstanceId, ) -> Self
pub fn root_reference_frame( pipeline_id: PipelineId, instance_id: PipelineInstanceId, ) -> Self
pub fn external( key: SpatialTreeItemKey, pipeline_id: PipelineId, instance_id: PipelineInstanceId, ) -> Self
Trait Implementations§
source§impl Clone for SpatialNodeUid
impl Clone for SpatialNodeUid
source§fn clone(&self) -> SpatialNodeUid
fn clone(&self) -> SpatialNodeUid
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 SpatialNodeUid
impl Debug for SpatialNodeUid
source§impl Hash for SpatialNodeUid
impl Hash for SpatialNodeUid
source§impl PartialEq for SpatialNodeUid
impl PartialEq for SpatialNodeUid
source§fn eq(&self, other: &SpatialNodeUid) -> bool
fn eq(&self, other: &SpatialNodeUid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SpatialNodeUid
impl Serialize for SpatialNodeUid
impl Copy for SpatialNodeUid
impl Eq for SpatialNodeUid
impl StructuralPartialEq for SpatialNodeUid
Auto Trait Implementations§
impl Freeze for SpatialNodeUid
impl RefUnwindSafe for SpatialNodeUid
impl Send for SpatialNodeUid
impl Sync for SpatialNodeUid
impl Unpin for SpatialNodeUid
impl UnwindSafe for SpatialNodeUid
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more