pub struct Universe { /* private fields */ }
Implementations§
Source§impl Universe
impl Universe
pub fn toggle(&mut self, row: u32, col: u32)
pub fn is_win(&mut self) -> Cell
pub fn new() -> Universe
pub fn set_cell(&mut self, row: u32, column: u32, cell: Cell)
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn cells(&self) -> *const Cell
pub fn is_non(&self, row: u32, col: u32) -> bool
Trait Implementations§
Source§impl FromWasmAbi for Universe
impl FromWasmAbi for Universe
Source§impl IntoWasmAbi for Universe
impl IntoWasmAbi for Universe
Source§impl LongRefFromWasmAbi for Universe
impl LongRefFromWasmAbi for Universe
Source§impl OptionFromWasmAbi for Universe
impl OptionFromWasmAbi for Universe
Source§impl OptionIntoWasmAbi for Universe
impl OptionIntoWasmAbi for Universe
Source§impl RefFromWasmAbi for Universe
impl RefFromWasmAbi for Universe
Source§impl RefMutFromWasmAbi for Universe
impl RefMutFromWasmAbi for Universe
Source§impl TryFromJsValue for Universe
impl TryFromJsValue for Universe
Source§impl VectorFromWasmAbi for Universe
impl VectorFromWasmAbi for Universe
Source§impl VectorIntoWasmAbi for Universe
impl VectorIntoWasmAbi for Universe
impl SupportsConstructor for Universe
impl SupportsInstanceProperty for Universe
impl SupportsStaticProperty for Universe
Auto Trait Implementations§
impl Freeze for Universe
impl RefUnwindSafe for Universe
impl Send for Universe
impl Sync for Universe
impl Unpin for Universe
impl UnwindSafe for Universe
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.