pub struct RadialGradientKey {
    pub common: PrimKeyCommonData,
    pub extend_mode: ExtendMode,
    pub center: PointKey,
    pub params: RadialGradientParams,
    pub stretch_size: SizeKey,
    pub stops: Vec<GradientStopKey>,
    pub tile_spacing: SizeKey,
    pub nine_patch: Option<Box<NinePatchDescriptor>>,
}Expand description
Identifying key for a radial gradient.
Fields§
§common: PrimKeyCommonData§extend_mode: ExtendMode§center: PointKey§params: RadialGradientParams§stretch_size: SizeKey§stops: Vec<GradientStopKey>§tile_spacing: SizeKey§nine_patch: Option<Box<NinePatchDescriptor>>Implementations§
Source§impl RadialGradientKey
 
impl RadialGradientKey
pub fn new(info: &LayoutPrimitiveInfo, radial_grad: RadialGradient) -> Self
Trait Implementations§
Source§impl Clone for RadialGradientKey
 
impl Clone for RadialGradientKey
Source§fn clone(&self) -> RadialGradientKey
 
fn clone(&self) -> RadialGradientKey
Returns a duplicate 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 RadialGradientKey
 
impl Debug for RadialGradientKey
Source§impl From<RadialGradientKey> for RadialGradientTemplate
 
impl From<RadialGradientKey> for RadialGradientTemplate
Source§fn from(item: RadialGradientKey) -> Self
 
fn from(item: RadialGradientKey) -> Self
Converts to this type from the input type.
Source§impl Hash for RadialGradientKey
 
impl Hash for RadialGradientKey
Source§impl InternDebug for RadialGradientKey
 
impl InternDebug for RadialGradientKey
fn on_interned(&self, _uid: ItemUid)
Source§impl MallocSizeOf for RadialGradientKey
 
impl MallocSizeOf for RadialGradientKey
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 RadialGradientKey
 
impl PartialEq for RadialGradientKey
Source§impl Serialize for RadialGradientKey
 
impl Serialize for RadialGradientKey
impl Eq for RadialGradientKey
impl StructuralPartialEq for RadialGradientKey
Auto Trait Implementations§
impl Freeze for RadialGradientKey
impl RefUnwindSafe for RadialGradientKey
impl Send for RadialGradientKey
impl Sync for RadialGradientKey
impl Unpin for RadialGradientKey
impl UnwindSafe for RadialGradientKey
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§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