pub struct Alliance(pub u8);Expand description
Struct abstracting the byte value for alliance colour and position
Tuple Fields§
§0: u8Implementations§
Source§impl Alliance
impl Alliance
Sourcepub fn new_red(position: u8) -> Alliance
pub fn new_red(position: u8) -> Alliance
Creates a new Alliance for the given position, on the red alliance
Sourcepub fn new_blue(position: u8) -> Alliance
pub fn new_blue(position: u8) -> Alliance
Creates a new Alliance for the given position, on the blue alliance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alliance
impl RefUnwindSafe for Alliance
impl Send for Alliance
impl Sync for Alliance
impl Unpin for Alliance
impl UnsafeUnpin for Alliance
impl UnwindSafe for Alliance
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