pub struct Dialog<S: Scalar>(pub Vec<Field<S>>);Expand description
The fields an operation shows for a step, in order: an ordered
dictionary from key to control, serialized as a list, so a UI renders it
with one map and keys each element by it. Keys are unique.
Tuple Fields§
§0: Vec<Field<S>>Implementations§
Source§impl<S: Scalar> Dialog<S>
impl<S: Scalar> Dialog<S>
pub fn new() -> Self
Sourcepub fn push(&mut self, key: impl Into<String>, control: Control<S>) -> &mut Self
pub fn push(&mut self, key: impl Into<String>, control: Control<S>) -> &mut Self
Appends control under key.
Sourcepub fn picked(&self) -> impl Iterator<Item = &EntityRef>
pub fn picked(&self) -> impl Iterator<Item = &EntityRef>
Every entity its reference fields hold: what the step builds on.
Trait Implementations§
impl<S: PartialEq + Scalar> StructuralPartialEq for Dialog<S>
Auto Trait Implementations§
impl<S> Freeze for Dialog<S>
impl<S> RefUnwindSafe for Dialog<S>where
S: RefUnwindSafe,
impl<S> Send for Dialog<S>
impl<S> Sync for Dialog<S>
impl<S> Unpin for Dialog<S>where
S: Unpin,
impl<S> UnsafeUnpin for Dialog<S>
impl<S> UnwindSafe for Dialog<S>where
S: UnwindSafe,
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