Enum chess_pgn_parser::Square
[−]
pub enum Square { A1, A2, A3, A4, A5, A6, A7, A8, AX, B1, B2, B3, B4, B5, B6, B7, B8, BX, C1, C2, C3, C4, C5, C6, C7, C8, CX, D1, D2, D3, D4, D5, D6, D7, D8, DX, E1, E2, E3, E4, E5, E6, E7, E8, EX, F1, F2, F3, F4, F5, F6, F7, F8, FX, G1, G2, G3, G4, G5, G6, G7, G8, GX, H1, H2, H3, H4, H5, H6, H7, H8, HX, X1, X2, X3, X4, X5, X6, X7, X8, XX, }
Variants
A1
A2
A3
A4
A5
A6
A7
A8
AX
B1
B2
B3
B4
B5
B6
B7
B8
BX
C1
C2
C3
C4
C5
C6
C7
C8
CX
D1
D2
D3
D4
D5
D6
D7
D8
DX
E1
E2
E3
E4
E5
E6
E7
E8
EX
F1
F2
F3
F4
F5
F6
F7
F8
FX
G1
G2
G3
G4
G5
G6
G7
G8
GX
H1
H2
H3
H4
H5
H6
H7
H8
HX
X1
X2
X3
X4
X5
X6
X7
X8
XX
Methods
impl Square
[src]
fn new(file: Option<File>, rank: Option<Rank>) -> Square
fn new_known(file: File, rank: Rank) -> Square
fn new_file(file: File) -> Square
fn new_rank(rank: Rank) -> Square
fn file(self: &Square) -> Option<File>
fn rank(self: &Square) -> Option<Rank>
Trait Implementations
impl PartialEq for Square
[src]
fn eq(&self, __arg_0: &Square) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Square
[src]
impl Debug for Square
[src]
impl Clone for Square
[src]
fn clone(&self) -> Square
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl FromPrimitive for Square
fn from_i64(n: i64) -> Option<Self>
Convert an i64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u64(n: u64) -> Option<Self>
Convert an u64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
Convert an isize
to return an optional value of this type. If the value cannot be represented by this value, the None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
Convert an i8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
Convert an i16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
Convert an i32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
Convert a usize
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
Convert an u8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
Convert an u16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u32(n: u32) -> Option<Self>
Convert an u32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f32(n: f32) -> Option<Self>
Convert a f32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f64(n: f64) -> Option<Self>
Convert a f64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more