Struct webrender::spatial_tree::SpatialNodeIndex
source · pub struct SpatialNodeIndex(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl SpatialNodeIndex
impl SpatialNodeIndex
pub const INVALID: SpatialNodeIndex = _
sourcepub const UNKNOWN: SpatialNodeIndex = _
pub const UNKNOWN: SpatialNodeIndex = _
May be set on a cluster / picture during scene building if the spatial
node is not known at this time. It must be set to a valid value before
scene building is complete (by finalize_picture
). In future, we could
make this type-safe with a wrapper type to ensure we know when a spatial
node index may have an unknown value.
Trait Implementations§
source§impl Clone for SpatialNodeIndex
impl Clone for SpatialNodeIndex
source§fn clone(&self) -> SpatialNodeIndex
fn clone(&self) -> SpatialNodeIndex
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 SpatialNodeIndex
impl Debug for SpatialNodeIndex
source§impl Default for SpatialNodeIndex
impl Default for SpatialNodeIndex
source§fn default() -> SpatialNodeIndex
fn default() -> SpatialNodeIndex
Returns the “default value” for a type. Read more
source§impl Hash for SpatialNodeIndex
impl Hash for SpatialNodeIndex
source§impl MallocSizeOf for SpatialNodeIndex
impl MallocSizeOf for SpatialNodeIndex
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for SpatialNodeIndex
impl PartialEq for SpatialNodeIndex
source§fn eq(&self, other: &SpatialNodeIndex) -> bool
fn eq(&self, other: &SpatialNodeIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for SpatialNodeIndex
impl Peek for SpatialNodeIndex
source§impl Poke for SpatialNodeIndex
impl Poke for SpatialNodeIndex
source§impl Serialize for SpatialNodeIndex
impl Serialize for SpatialNodeIndex
impl Copy for SpatialNodeIndex
impl Eq for SpatialNodeIndex
impl StructuralPartialEq for SpatialNodeIndex
Auto Trait Implementations§
impl Freeze for SpatialNodeIndex
impl RefUnwindSafe for SpatialNodeIndex
impl Send for SpatialNodeIndex
impl Sync for SpatialNodeIndex
impl Unpin for SpatialNodeIndex
impl UnwindSafe for SpatialNodeIndex
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