Struct webrender::prim_store::PrimTemplate
source · pub struct PrimTemplate<T> {
pub common: PrimTemplateCommonData,
pub kind: T,
}
Fields§
§common: PrimTemplateCommonData
§kind: T
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<T> MallocSizeOf for PrimTemplate<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for PrimTemplate<T>where
T: 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.
Auto Trait Implementations§
impl<T> Freeze for PrimTemplate<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrimTemplate<T>where
T: RefUnwindSafe,
impl<T> Send for PrimTemplate<T>where
T: Send,
impl<T> Sync for PrimTemplate<T>where
T: Sync,
impl<T> Unpin for PrimTemplate<T>where
T: Unpin,
impl<T> UnwindSafe for PrimTemplate<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