Struct webrender::prim_store::PrimitiveInstance
source · pub struct PrimitiveInstance {
pub kind: PrimitiveInstanceKind,
pub clip_leaf_id: ClipLeafId,
pub vis: PrimitiveVisibility,
}
Fields§
§kind: PrimitiveInstanceKind
Identifies the kind of primitive this instance is, and references to where the relevant information for the primitive can be found.
clip_leaf_id: ClipLeafId
All information and state related to clip(s) for this primitive
vis: PrimitiveVisibility
Information related to the current visibility state of this primitive.
Implementations§
source§impl PrimitiveInstance
impl PrimitiveInstance
pub fn new(kind: PrimitiveInstanceKind, clip_leaf_id: ClipLeafId) -> Self
pub fn reset(&mut self)
pub fn clear_visibility(&mut self)
pub fn uid(&self) -> ItemUid
Trait Implementations§
source§impl Debug for PrimitiveInstance
impl Debug for PrimitiveInstance
Auto Trait Implementations§
impl Freeze for PrimitiveInstance
impl RefUnwindSafe for PrimitiveInstance
impl Send for PrimitiveInstance
impl Sync for PrimitiveInstance
impl Unpin for PrimitiveInstance
impl UnwindSafe for PrimitiveInstance
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