Struct webrender::prim_store::PrimitiveStore
source · pub struct PrimitiveStore {
pub pictures: Vec<PicturePrimitive>,
pub text_runs: Storage<TextRunPrimitive>,
pub linear_gradients: Storage<LinearGradientPrimitive>,
pub images: Storage<ImageInstance>,
pub color_bindings: Storage<PropertyBinding<ColorU>>,
}
Fields§
§pictures: Vec<PicturePrimitive>
§text_runs: Storage<TextRunPrimitive>
§linear_gradients: Storage<LinearGradientPrimitive>
§images: Storage<ImageInstance>
A list of image instances. These are stored separately as storing them inline in the instance makes the structure bigger for other types.
color_bindings: Storage<PropertyBinding<ColorU>>
animated color bindings for this primitive.
Implementations§
source§impl PrimitiveStore
impl PrimitiveStore
pub fn new(stats: &PrimitiveStoreStats) -> PrimitiveStore
pub fn reset(&mut self)
pub fn get_stats(&self) -> PrimitiveStoreStats
pub fn print_picture_tree(&self, root: PictureIndex)
Trait Implementations§
source§impl Default for PrimitiveStore
impl Default for PrimitiveStore
Auto Trait Implementations§
impl Freeze for PrimitiveStore
impl RefUnwindSafe for PrimitiveStore
impl Send for PrimitiveStore
impl Sync for PrimitiveStore
impl Unpin for PrimitiveStore
impl UnwindSafe for PrimitiveStore
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