pub struct Faces { /* private fields */ }Expand description
The face on each side of every piece.
Implementations§
Source§impl Faces
impl Faces
Sourcepub fn left(&self, piece: PieceId) -> FaceId
pub fn left(&self, piece: PieceId) -> FaceId
The face left of piece, running from ends[0] to ends[1]; left
is in the points’ frame (see ExactPoints), so it is the right in
(x, y) for a store with a negative frame sign.
Sourcepub fn right(&self, piece: PieceId) -> FaceId
pub fn right(&self, piece: PieceId) -> FaceId
The face right of piece, running from ends[0] to ends[1]; right
is in the points’ frame, as for Faces::left.
Trait Implementations§
impl Eq for Faces
impl StructuralPartialEq for Faces
Auto Trait Implementations§
impl Freeze for Faces
impl RefUnwindSafe for Faces
impl Send for Faces
impl Sync for Faces
impl Unpin for Faces
impl UnsafeUnpin for Faces
impl UnwindSafe for Faces
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