pub struct Alliance(pub u8);Expand description
Struct abstracting the byte value for alliance colour and position
Tuple Fields
0: u8Implementations
sourceimpl 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 RefUnwindSafe for Alliance
impl Send for Alliance
impl Sync for Alliance
impl Unpin for Alliance
impl UnwindSafe for Alliance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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