[−][src]Struct shakmaty::fen::FenOpts
FEN formatting options.
Implementations
impl FenOpts
[src]
pub fn new() -> FenOpts
[src]
Standard X-FEN.
pub fn promoted(&mut self, promoted: bool) -> &mut FenOpts
[src]
Decide if promoted pieces should be tracked, e.g. Q~
.
pub fn shredder(&mut self, shredder: bool) -> &mut FenOpts
[src]
Decide if castling rights should be displayed in Shredder format,
e.g. HAha
instead of KQkq
.
pub fn scid(&mut self, scid: bool) -> &mut FenOpts
[src]
Decide if Crazyhouse pockets and remaining check counters should use
Scid-style, e.g. /q
instead of [q]
and +0+0
instead of 3+3
.
pub fn board_fen(&self, board: &Board) -> String
[src]
Create a board FEN such as
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
.
pub fn epd(&self, setup: &dyn Setup) -> String
[src]
Create an EPD such as
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -
.
pub fn fen(&self, setup: &dyn Setup) -> String
[src]
Create a FEN such as
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
.
Trait Implementations
impl Clone for FenOpts
[src]
impl Debug for FenOpts
[src]
impl Default for FenOpts
[src]
impl Eq for FenOpts
[src]
impl Hash for FenOpts
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FenOpts> for FenOpts
[src]
impl StructuralEq for FenOpts
[src]
impl StructuralPartialEq for FenOpts
[src]
Auto Trait Implementations
impl RefUnwindSafe for FenOpts
[src]
impl Send for FenOpts
[src]
impl Sync for FenOpts
[src]
impl Unpin for FenOpts
[src]
impl UnwindSafe for FenOpts
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,