Enum webrender::picture::Picture3DContext
source · pub enum Picture3DContext<C> {
Out,
In {
root_data: Option<Vec<C>>,
ancestor_index: SpatialNodeIndex,
plane_splitter_index: PlaneSplitterIndex,
},
}
Expand description
Enum value describing the place of a picture in a 3D context.
Variants§
Out
The picture is not a part of 3D context sub-hierarchy.
In
The picture is a part of 3D context.
Fields
§
ancestor_index: SpatialNodeIndex
The spatial node index of an “ancestor” element, i.e. one that establishes the transformed element’s containing block.
See CSS spec draft for more details: https://drafts.csswg.org/css-transforms-2/#accumulated-3d-transformation-matrix-computation
§
plane_splitter_index: PlaneSplitterIndex
Index in the built scene’s array of plane splitters.
Trait Implementations§
source§impl<C: Clone> Clone for Picture3DContext<C>
impl<C: Clone> Clone for Picture3DContext<C>
source§fn clone(&self) -> Picture3DContext<C>
fn clone(&self) -> Picture3DContext<C>
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<C: Debug> Debug for Picture3DContext<C>
impl<C: Debug> Debug for Picture3DContext<C>
Auto Trait Implementations§
impl<C> Freeze for Picture3DContext<C>
impl<C> RefUnwindSafe for Picture3DContext<C>where
C: RefUnwindSafe,
impl<C> Send for Picture3DContext<C>where
C: Send,
impl<C> Sync for Picture3DContext<C>where
C: Sync,
impl<C> Unpin for Picture3DContext<C>where
C: Unpin,
impl<C> UnwindSafe for Picture3DContext<C>where
C: UnwindSafe,
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