Fields
width: i32
height: i32
sticker_gap: Option<i32>
Implementations
sourceimpl Grid
impl Grid
pub fn new(width: i32, height: i32, sticker_gap: Option<i32>) -> Option<Self>
pub fn center_sq(&self, face: Face, x: i32, y: i32) -> Center
pub fn center_rect(
&self,
face: Face,
x: i32,
y: i32,
width: i32,
height: i32
) -> Center
pub fn corner_sq(&self, piece: usize, sticker: i32, x: i32, y: i32) -> Corner
pub fn corner_rect(
&self,
piece: usize,
sticker: i32,
x: i32,
y: i32,
width: i32,
height: i32
) -> Corner
pub fn edge_sq(&self, piece: usize, top: bool, x: i32, y: i32) -> Edge
pub fn edge_rect(
&self,
piece: usize,
top: bool,
x: i32,
y: i32,
width: i32,
height: i32
) -> Edge
Auto Trait Implementations
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more