pub struct StateField { /* private fields */ }Implementations§
Source§impl StateField
impl StateField
pub fn new(width: usize, height: usize) -> Self
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn set(&mut self, x: usize, y: usize, value: StructuralState)
pub fn values(&self) -> &[StructuralState]
pub fn counts(&self) -> StateCounts
pub fn counts_over_mask(&self, mask: &[bool]) -> StateCounts
Trait Implementations§
Source§impl Clone for StateField
impl Clone for StateField
Source§fn clone(&self) -> StateField
fn clone(&self) -> StateField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StateField
impl RefUnwindSafe for StateField
impl Send for StateField
impl Sync for StateField
impl Unpin for StateField
impl UnsafeUnpin for StateField
impl UnwindSafe for StateField
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