pub struct Dice<T> {
pub top: T,
pub bottom: T,
pub front: T,
pub back: T,
pub right: T,
pub left: T,
}
Expand description
6面サイコロ
Fields§
§top: T
上の面
bottom: T
下の面
front: T
前の面
back: T
後ろの面
right: T
右の面
left: T
左の面
Implementations§
Source§impl<T> Dice<T>where
T: Clone,
impl<T> Dice<T>where
T: Clone,
Sourcepub fn rot_clockwise(&self) -> Self
pub fn rot_clockwise(&self) -> Self
サイコロを上からみて時計回りに回転する。
Sourcepub fn rot_counterclockwise(&self) -> Self
pub fn rot_counterclockwise(&self) -> Self
サイコロを上からみて反時計回りに回転する。
Trait Implementations§
impl<T: Eq> Eq for Dice<T>
impl<T> StructuralPartialEq for Dice<T>
Auto Trait Implementations§
impl<T> Freeze for Dice<T>where
T: Freeze,
impl<T> RefUnwindSafe for Dice<T>where
T: RefUnwindSafe,
impl<T> Send for Dice<T>where
T: Send,
impl<T> Sync for Dice<T>where
T: Sync,
impl<T> Unpin for Dice<T>where
T: Unpin,
impl<T> UnwindSafe for Dice<T>where
T: UnwindSafe,
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