#[non_exhaustive]pub struct ViewCell {
pub value: String,
pub region: Option<u32>,
pub editable: bool,
pub circled: bool,
pub label: String,
pub block: Option<BlockCell>,
}Expand description
One cell in row-major order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: StringCurrent mark or clue value.
region: Option<u32>Optional region index for highlighting rule violations.
editable: boolWhether a player may change the cell.
circled: boolWhether the value is drawn in a circle, such as a Hashi island.
label: StringText printed in the cell whatever its mark, such as a Hitori number; empty for none. Marks are drawn around it.
block: Option<BlockCell>Drawn as a block instead of a mark, as Kakuro clue cells are.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ViewCell
impl Freeze for ViewCell
impl RefUnwindSafe for ViewCell
impl Send for ViewCell
impl Sync for ViewCell
impl Unpin for ViewCell
impl UnsafeUnpin for ViewCell
impl UnwindSafe for ViewCell
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