pub struct Castles(pub Players<Sides<Option<File>>>);Tuple Fields§
§0: Players<Sides<Option<File>>>Implementations§
Source§impl Castles
impl Castles
pub const fn empty() -> Self
pub const fn chess() -> Self
pub const fn chess_compatible(self) -> bool
pub const fn is_subset(self, other: Self) -> bool
pub const fn get(self, player: Player, side: Side) -> Option<File>
pub const fn has(self, player: Player, side: Side) -> bool
pub const fn set(&mut self, player: Player, side: Side, file: File)
pub fn clear(&mut self, player: Player, side: Side)
pub fn clear_player(&mut self, player: Player)
Trait Implementations§
impl Copy for Castles
impl Eq for Castles
Source§impl Ord for Castles
impl Ord for Castles
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Castles
impl PartialOrd for Castles
impl StructuralPartialEq for Castles
Auto Trait Implementations§
impl Freeze for Castles
impl RefUnwindSafe for Castles
impl Send for Castles
impl Sync for Castles
impl Unpin for Castles
impl UnsafeUnpin for Castles
impl UnwindSafe for Castles
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