pub struct ColorCastlingRights {
pub rights: [CastlingRight; 2],
}
Expand description
ColorCastlingRights represents castling rights for a color
Fields§
§rights: [CastlingRight; 2]
Trait Implementations§
Source§impl Clone for ColorCastlingRights
impl Clone for ColorCastlingRights
Source§fn clone(&self) -> ColorCastlingRights
fn clone(&self) -> ColorCastlingRights
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ColorCastlingRights
Auto Trait Implementations§
impl Freeze for ColorCastlingRights
impl RefUnwindSafe for ColorCastlingRights
impl Send for ColorCastlingRights
impl Sync for ColorCastlingRights
impl Unpin for ColorCastlingRights
impl UnwindSafe for ColorCastlingRights
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