pub struct Die {
pub sides: u8,
}Expand description
Contains the Die struct and its functions.
Fields§
§sides: u8A die has sides, that’s what makes it a die.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Die
impl RefUnwindSafe for Die
impl Send for Die
impl Sync for Die
impl Unpin for Die
impl UnsafeUnpin for Die
impl UnwindSafe for Die
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