Struct sark_grids::geometry::GridDiamond
source · pub struct GridDiamond {
pub pos: IVec2,
pub size: usize,
}
Fields§
§pos: IVec2
§size: usize
Implementations§
Trait Implementations§
source§impl Clone for GridDiamond
impl Clone for GridDiamond
source§fn clone(&self) -> GridDiamond
fn clone(&self) -> GridDiamond
Returns a copy 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 moresource§impl Debug for GridDiamond
impl Debug for GridDiamond
source§impl Default for GridDiamond
impl Default for GridDiamond
source§fn default() -> GridDiamond
fn default() -> GridDiamond
Returns the “default value” for a type. Read more
source§impl GridShape for GridDiamond
impl GridShape for GridDiamond
source§impl IntoIterator for GridDiamond
impl IntoIterator for GridDiamond
source§impl PartialEq<GridDiamond> for GridDiamond
impl PartialEq<GridDiamond> for GridDiamond
source§fn eq(&self, other: &GridDiamond) -> bool
fn eq(&self, other: &GridDiamond) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GridDiamond
impl Eq for GridDiamond
impl StructuralEq for GridDiamond
impl StructuralPartialEq for GridDiamond
Auto Trait Implementations§
impl RefUnwindSafe for GridDiamond
impl Send for GridDiamond
impl Sync for GridDiamond
impl Unpin for GridDiamond
impl UnwindSafe for GridDiamond
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