Enum nannou::draw::primitive::Primitive [−][src]
pub enum Primitive { }
Expand description
A wrapper around all primitive sets of properties so that they may be stored within the
Draw’s drawing
field while they are being drawn.
This also allows us to flush all pending drawings to the mesh if Draw::to_frame
is called
before their respective Drawing types are dropped.
Variants
Arrow(Arrow)
Ellipse(Ellipse)
Line(Line)
MeshVertexless(Vertexless)
Mesh(Mesh)
PathInit(PathInit)
PathFill(PathFill)
PathStroke(PathStroke)
Path(Path)
PolygonInit(PolygonInit)
Polygon(Polygon)
Quad(Quad)
Rect(Rect)
Text(Text)
Texture(Texture)
Tri(Tri)
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Render self into the given mesh.
Auto Trait Implementations
impl !RefUnwindSafe for Primitive
impl !UnwindSafe for Primitive
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V