pub enum EncodedPaint {
Gradient(EncodedGradient),
Image(EncodedImage),
ExternalTexture(EncodedExternalTexture),
BlurredRoundedRect(EncodedBlurredRoundedRectangle),
}Expand description
An encoded paint.
Variants§
Gradient(EncodedGradient)
An encoded gradient.
Image(EncodedImage)
An encoded image.
ExternalTexture(EncodedExternalTexture)
An encoded external texture.
BlurredRoundedRect(EncodedBlurredRoundedRectangle)
A blurred, rounded rectangle.
Implementations§
Source§impl EncodedPaint
impl EncodedPaint
Sourcepub fn may_have_transparency(&self) -> bool
pub fn may_have_transparency(&self) -> bool
Returns whether this encoded paint may produce non-opaque pixels.
Trait Implementations§
Source§impl Debug for EncodedPaint
impl Debug for EncodedPaint
Source§impl From<EncodedBlurredRoundedRectangle> for EncodedPaint
impl From<EncodedBlurredRoundedRectangle> for EncodedPaint
Source§fn from(value: EncodedBlurredRoundedRectangle) -> Self
fn from(value: EncodedBlurredRoundedRectangle) -> Self
Converts to this type from the input type.
Source§impl From<EncodedGradient> for EncodedPaint
impl From<EncodedGradient> for EncodedPaint
Source§fn from(value: EncodedGradient) -> Self
fn from(value: EncodedGradient) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for EncodedPaint
impl RefUnwindSafe for EncodedPaint
impl Send for EncodedPaint
impl Sync for EncodedPaint
impl Unpin for EncodedPaint
impl UnsafeUnpin for EncodedPaint
impl UnwindSafe for EncodedPaint
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