pub enum GeneratorPlan {
Shapes(ShapesPlan),
Layout(LayoutPlan),
}Expand description
A generator’s tree, planned once: what a shapes or layout generator evaluates each frame from. Other generators need none.
Variants§
Shapes(ShapesPlan)
A shapes generator’s content tree.
Layout(LayoutPlan)
A layout generator’s box tree.
Implementations§
Source§impl GeneratorPlan
impl GeneratorPlan
Sourcepub fn new(generator: &Generator, canvas: (u32, u32)) -> Option<Self>
pub fn new(generator: &Generator, canvas: (u32, u32)) -> Option<Self>
The plan generator draws from on a project canvas of canvas
pixels, if it needs one.
Sourcepub const fn shapes(&self) -> Option<&ShapesPlan>
pub const fn shapes(&self) -> Option<&ShapesPlan>
The shapes plan, for a shapes generator.
Sourcepub const fn layout(&self) -> Option<&LayoutPlan>
pub const fn layout(&self) -> Option<&LayoutPlan>
The layout plan, for a layout generator.
Trait Implementations§
Source§impl Clone for GeneratorPlan
impl Clone for GeneratorPlan
Source§impl Debug for GeneratorPlan
impl Debug for GeneratorPlan
Source§impl PartialEq for GeneratorPlan
impl PartialEq for GeneratorPlan
impl StructuralPartialEq for GeneratorPlan
Auto Trait Implementations§
impl Freeze for GeneratorPlan
impl RefUnwindSafe for GeneratorPlan
impl Send for GeneratorPlan
impl Sync for GeneratorPlan
impl Unpin for GeneratorPlan
impl UnsafeUnpin for GeneratorPlan
impl UnwindSafe for GeneratorPlan
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