pub enum Block {
Text {
text: String,
tone: Tone,
},
List {
items: Vec<Row>,
},
Table {
head: Vec<String>,
rows: Vec<Row>,
foot: Vec<Row>,
},
Group {
title: String,
detail: Option<String>,
open: bool,
light: Vec<PickedElement>,
blocks: Vec<Block>,
},
Actions {
actions: Vec<AnswerAction>,
},
}Expand description
A part of an Answer.
Variants§
Text
A sentence: a hint, or why something failed.
List
Items one under another: what was picked, which solids overlap.
Table
Rows of cells, under a head if it has one, over a foot if it has one: each row’s label, if it has one, in the first column.
Group
Blocks under a title, shown open or folded: one solid’s mass.
Fields
§
light: Vec<PickedElement>What to light while the title is pointed at.
Actions
Buttons, side by side.
Fields
§
actions: Vec<AnswerAction>Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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