Struct webrender::prim_store::line_dec::LineDecoration
source · pub struct LineDecoration {
pub cache_key: Option<LineDecorationCacheKey>,
pub color: ColorU,
}
Expand description
Identifying key for a line decoration.
Fields§
§cache_key: Option<LineDecorationCacheKey>
§color: ColorU
Trait Implementations§
source§impl Clone for LineDecoration
impl Clone for LineDecoration
source§fn clone(&self) -> LineDecoration
fn clone(&self) -> LineDecoration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CreateShadow for LineDecoration
impl CreateShadow for LineDecoration
fn create_shadow(&self, shadow: &Shadow, _: bool, _: RasterSpace) -> Self
source§impl Debug for LineDecoration
impl Debug for LineDecoration
source§impl Hash for LineDecoration
impl Hash for LineDecoration
source§impl Internable for LineDecoration
impl Internable for LineDecoration
type Key = PrimKey<LineDecoration>
type StoreData = PrimTemplate<LineDecorationData>
type InternData = ()
const PROFILE_COUNTER: usize = 92usize
source§impl InternablePrimitive for LineDecoration
impl InternablePrimitive for LineDecoration
source§fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<LineDecoration>
fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<LineDecoration>
Build a new key from self with
info
.fn make_instance_kind( _key: PrimKey<LineDecoration>, data_handle: Handle<LineDecoration>, _: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
source§impl IsVisible for LineDecoration
impl IsVisible for LineDecoration
fn is_visible(&self) -> bool
source§impl MallocSizeOf for LineDecoration
impl MallocSizeOf for LineDecoration
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 PartialEq for LineDecoration
impl PartialEq for LineDecoration
source§impl Serialize for LineDecoration
impl Serialize for LineDecoration
impl Eq for LineDecoration
impl StructuralPartialEq for LineDecoration
Auto Trait Implementations§
impl Freeze for LineDecoration
impl RefUnwindSafe for LineDecoration
impl Send for LineDecoration
impl Sync for LineDecoration
impl Unpin for LineDecoration
impl UnwindSafe for LineDecoration
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