Struct conrod_core::render::Primitives [−][src]
pub struct Primitives<'a> { /* fields omitted */ }
Expand description
An iterator-like type that yields a reference to each primitive in order of depth for rendering.
This type is produced by the Ui::draw
and Ui::draw_if_changed
methods.
This type borrows data from the Ui
in order to lazily produce each Primitive
. If you
require ownership over the sequence of primitives, consider using the OwnedPrimitives
type.
The OwnedPrimitives
type can be produced by calling the Primitives::owned
method.
Implementations
Constructor for the Primitives
iterator.
Collect the Primitives
list into an owned collection.
This is useful for sending Ui
rendering data across threads in an efficient manner.
Trait Implementations
Yield the next Primitive
in order of depth, bottom to top.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Primitives<'a>
impl<'a> !Send for Primitives<'a>
impl<'a> !Sync for Primitives<'a>
impl<'a> Unpin for Primitives<'a>
impl<'a> !UnwindSafe for Primitives<'a>