pub struct PrimTemplate<T> {
    pub common: PrimTemplateCommonData,
    pub kind: T,
}Fields§
§common: PrimTemplateCommonData§kind: TTrait 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.
Source§impl PatternBuilder for PrimTemplate<BoxShadowData>
 
impl PatternBuilder for PrimTemplate<BoxShadowData>
fn build( &self, sub_rect: Option<DeviceRect>, ctx: &PatternBuilderContext<'_>, state: &mut PatternBuilderState<'_>, ) -> Pattern
fn get_base_color(&self, _ctx: &PatternBuilderContext<'_>) -> ColorF
fn can_use_nine_patch(&self) -> bool
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