Struct webrender::prim_store::PrimKey
source · pub struct PrimKey<T: MallocSizeOf> {
pub common: PrimKeyCommonData,
pub kind: T,
}
Fields§
§common: PrimKeyCommonData
§kind: T
Implementations§
source§impl PrimKey<BoxShadow>
impl PrimKey<BoxShadow>
pub fn new(info: &LayoutPrimitiveInfo, shadow: BoxShadow) -> Self
source§impl PrimKey<BackdropCapture>
impl PrimKey<BackdropCapture>
pub fn new( info: &LayoutPrimitiveInfo, backdrop_capture: BackdropCapture, ) -> Self
source§impl PrimKey<BackdropRender>
impl PrimKey<BackdropRender>
pub fn new(info: &LayoutPrimitiveInfo, backdrop_render: BackdropRender) -> Self
source§impl PrimKey<NormalBorderPrim>
impl PrimKey<NormalBorderPrim>
pub fn new(info: &LayoutPrimitiveInfo, normal_border: NormalBorderPrim) -> Self
source§impl PrimKey<ImageBorder>
impl PrimKey<ImageBorder>
pub fn new(info: &LayoutPrimitiveInfo, image_border: ImageBorder) -> Self
source§impl PrimKey<YuvImage>
impl PrimKey<YuvImage>
pub fn new(info: &LayoutPrimitiveInfo, yuv_image: YuvImage) -> Self
source§impl PrimKey<LineDecoration>
impl PrimKey<LineDecoration>
pub fn new(info: &LayoutPrimitiveInfo, line_dec: LineDecoration) -> Self
Trait Implementations§
source§impl From<PrimKey<BackdropCapture>> for PrimTemplate<BackdropCaptureData>
impl From<PrimKey<BackdropCapture>> for PrimTemplate<BackdropCaptureData>
source§fn from(backdrop: PrimKey<BackdropCapture>) -> Self
fn from(backdrop: PrimKey<BackdropCapture>) -> Self
Converts to this type from the input type.
source§impl From<PrimKey<BackdropRender>> for PrimTemplate<BackdropRenderData>
impl From<PrimKey<BackdropRender>> for PrimTemplate<BackdropRenderData>
source§fn from(backdrop: PrimKey<BackdropRender>) -> Self
fn from(backdrop: PrimKey<BackdropRender>) -> Self
Converts to this type from the input type.
source§impl From<PrimKey<BoxShadow>> for PrimTemplate<BoxShadowData>
impl From<PrimKey<BoxShadow>> for PrimTemplate<BoxShadowData>
source§impl From<PrimKey<ImageBorder>> for PrimTemplate<ImageBorderData>
impl From<PrimKey<ImageBorder>> for PrimTemplate<ImageBorderData>
source§fn from(key: PrimKey<ImageBorder>) -> Self
fn from(key: PrimKey<ImageBorder>) -> Self
Converts to this type from the input type.
source§impl From<PrimKey<LineDecoration>> for PrimTemplate<LineDecorationData>
impl From<PrimKey<LineDecoration>> for PrimTemplate<LineDecorationData>
source§fn from(line_dec: PrimKey<LineDecoration>) -> Self
fn from(line_dec: PrimKey<LineDecoration>) -> Self
Converts to this type from the input type.
source§impl From<PrimKey<NormalBorderPrim>> for PrimTemplate<NormalBorderData>
impl From<PrimKey<NormalBorderPrim>> for PrimTemplate<NormalBorderData>
source§fn from(key: PrimKey<NormalBorderPrim>) -> Self
fn from(key: PrimKey<NormalBorderPrim>) -> Self
Converts to this type from the input type.
source§impl From<PrimKey<YuvImage>> for PrimTemplate<YuvImageData>
impl From<PrimKey<YuvImage>> for PrimTemplate<YuvImageData>
source§impl InternDebug for PrimKey<BackdropCapture>
impl InternDebug for PrimKey<BackdropCapture>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<BackdropRender>
impl InternDebug for PrimKey<BackdropRender>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<BoxShadow>
impl InternDebug for PrimKey<BoxShadow>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<Image>
impl InternDebug for PrimKey<Image>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<ImageBorder>
impl InternDebug for PrimKey<ImageBorder>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<LineDecoration>
impl InternDebug for PrimKey<LineDecoration>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<NormalBorderPrim>
impl InternDebug for PrimKey<NormalBorderPrim>
fn on_interned(&self, _uid: ItemUid)
source§impl InternDebug for PrimKey<YuvImage>
impl InternDebug for PrimKey<YuvImage>
fn on_interned(&self, _uid: ItemUid)
source§impl<T> MallocSizeOf for PrimKey<T>where
T: MallocSizeOf + MallocSizeOf,
impl<T> MallocSizeOf for PrimKey<T>where
T: MallocSizeOf + MallocSizeOf,
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.
source§impl<T: PartialEq + MallocSizeOf> PartialEq for PrimKey<T>
impl<T: PartialEq + MallocSizeOf> PartialEq for PrimKey<T>
impl<T: Eq + MallocSizeOf> Eq for PrimKey<T>
impl<T: MallocSizeOf> StructuralPartialEq for PrimKey<T>
Auto Trait Implementations§
impl<T> Freeze for PrimKey<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrimKey<T>where
T: RefUnwindSafe,
impl<T> Send for PrimKey<T>where
T: Send,
impl<T> Sync for PrimKey<T>where
T: Sync,
impl<T> Unpin for PrimKey<T>where
T: Unpin,
impl<T> UnwindSafe for PrimKey<T>where
T: 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