Struct webrender::prim_store::gradient::conic::ConicGradientKey
source · pub struct ConicGradientKey {
pub common: PrimKeyCommonData,
pub extend_mode: ExtendMode,
pub center: PointKey,
pub params: ConicGradientParams,
pub stretch_size: SizeKey,
pub stops: Vec<GradientStopKey>,
pub tile_spacing: SizeKey,
pub nine_patch: Option<Box<NinePatchDescriptor>>,
}
Expand description
Identifying key for a line decoration.
Fields§
§common: PrimKeyCommonData
§extend_mode: ExtendMode
§center: PointKey
§params: ConicGradientParams
§stretch_size: SizeKey
§stops: Vec<GradientStopKey>
§tile_spacing: SizeKey
§nine_patch: Option<Box<NinePatchDescriptor>>
Implementations§
source§impl ConicGradientKey
impl ConicGradientKey
pub fn new(info: &LayoutPrimitiveInfo, conic_grad: ConicGradient) -> Self
Trait Implementations§
source§impl Clone for ConicGradientKey
impl Clone for ConicGradientKey
source§fn clone(&self) -> ConicGradientKey
fn clone(&self) -> ConicGradientKey
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 Debug for ConicGradientKey
impl Debug for ConicGradientKey
source§impl From<ConicGradientKey> for ConicGradientTemplate
impl From<ConicGradientKey> for ConicGradientTemplate
source§fn from(item: ConicGradientKey) -> Self
fn from(item: ConicGradientKey) -> Self
Converts to this type from the input type.
source§impl Hash for ConicGradientKey
impl Hash for ConicGradientKey
source§impl InternDebug for ConicGradientKey
impl InternDebug for ConicGradientKey
fn on_interned(&self, _uid: ItemUid)
source§impl MallocSizeOf for ConicGradientKey
impl MallocSizeOf for ConicGradientKey
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 ConicGradientKey
impl PartialEq for ConicGradientKey
source§fn eq(&self, other: &ConicGradientKey) -> bool
fn eq(&self, other: &ConicGradientKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConicGradientKey
impl Serialize for ConicGradientKey
impl Eq for ConicGradientKey
impl StructuralPartialEq for ConicGradientKey
Auto Trait Implementations§
impl Freeze for ConicGradientKey
impl RefUnwindSafe for ConicGradientKey
impl Send for ConicGradientKey
impl Sync for ConicGradientKey
impl Unpin for ConicGradientKey
impl UnwindSafe for ConicGradientKey
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