[][src]Trait conrod_core::render::PrimitiveWalker

pub trait PrimitiveWalker {
    fn next_primitive(&mut self) -> Option<Primitive<'_>>;
}
[]

A trait that allows the user to remain generic over types yielding Primitives.

This trait is implemented for both the Primitives and WalkOwnedPrimitives types.

Required methods

fn next_primitive(&mut self) -> Option<Primitive<'_>>[]

Yield the next Primitive in order of depth, bottom to top.

Implementors

impl<'a> PrimitiveWalker for Primitives<'a>[src][+]

impl<'a> PrimitiveWalker for WalkOwnedPrimitives<'a>[src][+]