pub enum TextFill {
Solid([u8; 4]),
Gradient(TextGradient),
}Expand description
What paints a text’s glyphs.
Variants§
Solid([u8; 4])
Straight (not premultiplied) sRGB RGBA.
Gradient(TextGradient)
A gradient over the layout box.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextFill
Auto Trait Implementations§
impl Freeze for TextFill
impl RefUnwindSafe for TextFill
impl Send for TextFill
impl Sync for TextFill
impl Unpin for TextFill
impl UnsafeUnpin for TextFill
impl UnwindSafe for TextFill
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