Struct Tessellation
pub struct Tessellation { /* private fields */ }Expand description
A tessellation summary.
Implementations§
§impl Tessellation
impl Tessellation
pub const fn new(
kind: TessellationKind,
tile_count: usize,
) -> Option<Tessellation>
pub const fn new( kind: TessellationKind, tile_count: usize, ) -> Option<Tessellation>
Creates a tessellation with at least one tile.
pub const fn kind(self) -> TessellationKind
pub const fn kind(self) -> TessellationKind
Returns the tessellation kind.
pub const fn tile_count(self) -> usize
pub const fn tile_count(self) -> usize
Returns the tile count.
Trait Implementations§
§impl Clone for Tessellation
impl Clone for Tessellation
§fn clone(&self) -> Tessellation
fn clone(&self) -> Tessellation
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 more§impl Debug for Tessellation
impl Debug for Tessellation
§impl PartialEq for Tessellation
impl PartialEq for Tessellation
impl Copy for Tessellation
impl Eq for Tessellation
impl StructuralPartialEq for Tessellation
Auto Trait Implementations§
impl Freeze for Tessellation
impl RefUnwindSafe for Tessellation
impl Send for Tessellation
impl Sync for Tessellation
impl Unpin for Tessellation
impl UnsafeUnpin for Tessellation
impl UnwindSafe for Tessellation
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