pub struct ColorPos {
pub x: f32,
pub y: f32,
pub attachment_point: ColorAttachmentPoint,
}Expand description
Position for gradient control points.
Fields§
§x: f32X coordinate (usually normalized).
y: f32Y coordinate (usually normalized).
attachment_point: ColorAttachmentPointAnchor used to interpret this position.
Trait Implementations§
impl Copy for ColorPos
impl StructuralPartialEq for ColorPos
Auto Trait Implementations§
impl Freeze for ColorPos
impl RefUnwindSafe for ColorPos
impl Send for ColorPos
impl Sync for ColorPos
impl Unpin for ColorPos
impl UnsafeUnpin for ColorPos
impl UnwindSafe for ColorPos
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<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.