pub struct Tessellation { /* private fields */ }Expand description
A tessellation summary.
Implementations§
Source§impl Tessellation
impl Tessellation
Sourcepub 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.
Sourcepub const fn kind(self) -> TessellationKind
pub const fn kind(self) -> TessellationKind
Returns the tessellation kind.
Sourcepub const fn tile_count(self) -> usize
pub const fn tile_count(self) -> usize
Returns the tile count.
Trait Implementations§
Source§impl Clone for Tessellation
impl Clone for Tessellation
Source§fn clone(&self) -> Tessellation
fn clone(&self) -> Tessellation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Tessellation
impl Debug for Tessellation
Source§impl PartialEq for Tessellation
impl PartialEq for Tessellation
Source§fn eq(&self, other: &Tessellation) -> bool
fn eq(&self, other: &Tessellation) -> bool
Tests for
self and other values to be equal, and is used by ==.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