pub struct CastlingRight {
pub can_castle: bool,
}
Expand description
CastlingRight represents a castling right
Fields§
§can_castle: bool
Trait Implementations§
Source§impl Clone for CastlingRight
impl Clone for CastlingRight
Source§fn clone(&self) -> CastlingRight
fn clone(&self) -> CastlingRight
Returns a copy 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 CastlingRight
Auto Trait Implementations§
impl Freeze for CastlingRight
impl RefUnwindSafe for CastlingRight
impl Send for CastlingRight
impl Sync for CastlingRight
impl Unpin for CastlingRight
impl UnwindSafe for CastlingRight
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