pub enum Fill {
Solid(Color),
Linear {
angle: f32,
stops: Vec<(Color, f32)>,
},
}Expand description
How a box is filled: one color, or a CSS-style linear gradient.
Variants§
Solid(Color)
One color over the whole fill, with a value for each theme.
Linear
angle in degrees, CSS’s: 0 points up, 90 right, 180 down. Each stop
is a color at an offset from 0 to 1 along the gradient line.
Trait Implementations§
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Forget for Fill
impl Freeze for Fill
impl Move for Fill
impl RefUnwindSafe for Fill
impl Send for Fillwhere
RawVecInner: Send,
impl Sync for Fillwhere
RawVecInner: Sync,
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fillwhere
RawVecInner: 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