pub enum Cell {
Text {
text: String,
mono: bool,
strong: bool,
},
Link {
text: String,
},
Edit {
text: String,
},
Check {
on: bool,
hint: Option<String>,
},
}Expand description
A cell of a Widget::Sheet.
A package builds these, so a variant keeps its fields for as long as
the contract’s minor version holds: a new option comes as a new
variant, or as a new struct that derives Default.
Variants§
Text
Text; strong for a row heading the rows under it.
Link
Text a click on selects its row (PanelEvent::Select).
Edit
Text the user edits, told once typing ends (PanelEvent::CellText).
Check
A box ticked or not (PanelEvent::CellCheck).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Forget for Cell
impl Freeze for Cell
impl Move for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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