Struct webrender::visibility::PrimitiveVisibility
source · pub struct PrimitiveVisibility {
pub clip_chain: ClipChainInstance,
pub state: VisibilityState,
pub clip_task_index: ClipTaskIndex,
}
Expand description
Information stored for a visible primitive about the visible rect and associated clip information.
Fields§
§clip_chain: ClipChainInstance
The clip chain instance that was built for this primitive.
state: VisibilityState
Current visibility state of the primitive.
clip_task_index: ClipTaskIndex
An index into the clip task instances array in the primitive store. If this is ClipTaskIndex::INVALID, then the primitive has no clip mask. Otherwise, it may store the offset of the global clip mask task for this primitive, or the first of a list of clip task ids (one per segment).
Implementations§
Trait Implementations§
source§impl Debug for PrimitiveVisibility
impl Debug for PrimitiveVisibility
Auto Trait Implementations§
impl Freeze for PrimitiveVisibility
impl RefUnwindSafe for PrimitiveVisibility
impl Send for PrimitiveVisibility
impl Sync for PrimitiveVisibility
impl Unpin for PrimitiveVisibility
impl UnwindSafe for PrimitiveVisibility
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