pub enum Generator<'widget, 'bp> {
Single {
ident: &'bp str,
body: &'bp [Blueprint],
},
Loop {
len: usize,
binding: &'bp str,
body: &'bp [Blueprint],
},
Iteration {
binding: &'bp str,
body: &'bp [Blueprint],
},
With {
binding: &'bp str,
body: &'bp [Blueprint],
},
ControlFlow(&'widget ControlFlow<'bp>),
ControlFlowContainer(&'bp [Blueprint]),
Slot(&'bp [Blueprint]),
}Variants§
Single
Loop
Iteration
With
ControlFlow(&'widget ControlFlow<'bp>)
ControlFlowContainer(&'bp [Blueprint])
Slot(&'bp [Blueprint])
Trait Implementations§
Source§impl<'widget, 'bp> From<&'widget WidgetContainer<'bp>> for Generator<'widget, 'bp>
impl<'widget, 'bp> From<&'widget WidgetContainer<'bp>> for Generator<'widget, 'bp>
Source§fn from(widget: &'widget WidgetContainer<'bp>) -> Self
fn from(widget: &'widget WidgetContainer<'bp>) -> Self
Converts to this type from the input type.
impl<'widget, 'bp> Copy for Generator<'widget, 'bp>
Auto Trait Implementations§
impl<'widget, 'bp> Freeze for Generator<'widget, 'bp>
impl<'widget, 'bp> !RefUnwindSafe for Generator<'widget, 'bp>
impl<'widget, 'bp> !Send for Generator<'widget, 'bp>
impl<'widget, 'bp> !Sync for Generator<'widget, 'bp>
impl<'widget, 'bp> Unpin for Generator<'widget, 'bp>
impl<'widget, 'bp> UnsafeUnpin for Generator<'widget, 'bp>
impl<'widget, 'bp> !UnwindSafe for Generator<'widget, 'bp>
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