pub enum Primitive {
Shadow(Shadow),
Quad(Quad),
Path(Path<ScaledPixels>),
Underline(Underline),
MonochromeSprite(MonochromeSprite),
PolychromeSprite(PolychromeSprite),
}
Variants§
Shadow(Shadow)
Quad(Quad)
Path(Path<ScaledPixels>)
Underline(Underline)
MonochromeSprite(MonochromeSprite)
PolychromeSprite(PolychromeSprite)
Implementations§
source§impl Primitive
impl Primitive
pub fn bounds(&self) -> &Bounds<ScaledPixels>
pub fn content_mask(&self) -> &ContentMask<ScaledPixels>
Trait Implementations§
source§impl From<MonochromeSprite> for Primitive
impl From<MonochromeSprite> for Primitive
source§fn from(sprite: MonochromeSprite) -> Self
fn from(sprite: MonochromeSprite) -> Self
Converts to this type from the input type.
source§impl From<Path<ScaledPixels>> for Primitive
impl From<Path<ScaledPixels>> for Primitive
source§fn from(path: Path<ScaledPixels>) -> Self
fn from(path: Path<ScaledPixels>) -> Self
Converts to this type from the input type.
source§impl From<PolychromeSprite> for Primitive
impl From<PolychromeSprite> for Primitive
source§fn from(sprite: PolychromeSprite) -> Self
fn from(sprite: PolychromeSprite) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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