[−][src]Struct conrod_core::render::Primitives
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
impl<'a> Primitives<'a>[src]
pub fn new(
graph: &'a Graph,
depth_order: &'a [Id],
theme: &'a Theme,
fonts: &'a Map,
window_dim: Dimensions
) -> Self[src]
graph: &'a Graph,
depth_order: &'a [Id],
theme: &'a Theme,
fonts: &'a Map,
window_dim: Dimensions
) -> Self
Constructor for the Primitives iterator.
pub fn next(&mut self) -> Option<Primitive<'_>>[src]
Yield the next Primitive for rendering.
pub fn owned(self) -> OwnedPrimitives[src]
Collect the Primitives list into an owned collection.
This is useful for sending Ui rendering data across threads in an efficient manner.
Trait Implementations
impl<'a> PrimitiveWalker for Primitives<'a>[src]
fn next_primitive(&mut self) -> Option<Primitive<'_>>[src]
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>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,