Struct webrender::prim_store::image::Image
source · pub struct Image {
pub key: ImageKey,
pub stretch_size: SizeKey,
pub tile_spacing: SizeKey,
pub color: ColorU,
pub image_rendering: ImageRendering,
pub alpha_type: AlphaType,
}
Fields§
§key: ImageKey
§stretch_size: SizeKey
§tile_spacing: SizeKey
§color: ColorU
§image_rendering: ImageRendering
§alpha_type: AlphaType
Trait Implementations§
source§impl CreateShadow for Image
impl CreateShadow for Image
fn create_shadow(&self, shadow: &Shadow, _: bool, _: RasterSpace) -> Self
source§impl Internable for Image
impl Internable for Image
source§impl InternablePrimitive for Image
impl InternablePrimitive for Image
source§fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<Image>
fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<Image>
Build a new key from self with
info
.fn make_instance_kind( _key: PrimKey<Image>, data_handle: Handle<Image>, prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
source§impl MallocSizeOf for Image
impl MallocSizeOf for Image
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.
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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