Enum sgf_parse::go::Prop [−][src]
pub enum Prop {
Show 69 variants
B(Move),
KO,
MN(i64),
W(Move),
AB(HashSet<Point>),
AE(HashSet<Point>),
AW(HashSet<Point>),
PL(Color),
C(Text),
DM(Double),
GB(Double),
GW(Double),
HO(Double),
N(SimpleText),
UC(Double),
V(f64),
BM(Double),
DO,
IT,
TE(Double),
AR(HashSet<(Point, Point)>),
CR(HashSet<Point>),
DD(HashSet<Point>),
LB(HashSet<(Point, SimpleText)>),
LN(HashSet<(Point, Point)>),
MA(HashSet<Point>),
SL(HashSet<Point>),
SQ(HashSet<Point>),
TR(HashSet<Point>),
AP((SimpleText, SimpleText)),
CA(SimpleText),
FF(i64),
GM(i64),
ST(i64),
SZ((u8, u8)),
AN(SimpleText),
BR(SimpleText),
BT(SimpleText),
CP(SimpleText),
DT(SimpleText),
EV(SimpleText),
GN(SimpleText),
GC(Text),
ON(SimpleText),
OT(SimpleText),
PB(SimpleText),
PC(SimpleText),
PW(SimpleText),
RE(SimpleText),
RO(SimpleText),
RU(SimpleText),
SO(SimpleText),
TM(f64),
US(SimpleText),
WR(SimpleText),
WT(SimpleText),
BL(f64),
OB(i64),
OW(i64),
WL(f64),
FG(Option<(i64, SimpleText)>),
PM(i64),
VW(HashSet<Point>),
Unknown(String, Vec<String>),
Invalid(String, Vec<String>),
HA(i64),
KM(f64),
TB(HashSet<Point>),
TW(HashSet<Point>),
}Expand description
An SGF Property with identifier and value.
All general properties from the SGF
specification and all game specific properties will return the approprite enum
instance with parsed data. Unrecognized properties will return
Prop::Unknown. Recognized general or game specific properties with invalid values will
return Prop::Invalid.
See property value types for a list of types recognized by SGF. For parsing purposes the following mappings are used:
Variants
Tuple Fields of B
0: MoveTuple Fields of MN
0: i64Tuple Fields of W
0: MoveTuple Fields of PL
0: ColorTuple Fields of C
0: TextTuple Fields of DM
0: DoubleTuple Fields of GB
0: DoubleTuple Fields of GW
0: DoubleTuple Fields of HO
0: DoubleTuple Fields of N
0: SimpleTextTuple Fields of UC
0: DoubleTuple Fields of V
0: f64Tuple Fields of BM
0: DoubleTuple Fields of TE
0: DoubleTuple Fields of LB
0: HashSet<(Point, SimpleText)>Tuple Fields of AP
Tuple Fields of CA
0: SimpleTextTuple Fields of FF
0: i64Tuple Fields of GM
0: i64Tuple Fields of ST
0: i64Tuple Fields of AN
0: SimpleTextTuple Fields of BR
0: SimpleTextTuple Fields of BT
0: SimpleTextTuple Fields of CP
0: SimpleTextTuple Fields of DT
0: SimpleTextTuple Fields of EV
0: SimpleTextTuple Fields of GN
0: SimpleTextTuple Fields of GC
0: TextTuple Fields of ON
0: SimpleTextTuple Fields of OT
0: SimpleTextTuple Fields of PB
0: SimpleTextTuple Fields of PC
0: SimpleTextTuple Fields of PW
0: SimpleTextTuple Fields of RE
0: SimpleTextTuple Fields of RO
0: SimpleTextTuple Fields of RU
0: SimpleTextTuple Fields of SO
0: SimpleTextTuple Fields of TM
0: f64Tuple Fields of US
0: SimpleTextTuple Fields of WR
0: SimpleTextTuple Fields of WT
0: SimpleTextTuple Fields of BL
0: f64Tuple Fields of OB
0: i64Tuple Fields of OW
0: i64Tuple Fields of WL
0: f64Tuple Fields of FG
0: Option<(i64, SimpleText)>Tuple Fields of PM
0: i64Tuple Fields of HA
0: i64Tuple Fields of KM
0: f64Trait Implementations
Returns a new property parsed from the provided identifier and values Read more
Returns the PropertyType associated with the property. Read more
Validates a set of properties. Read more
Auto Trait Implementations
impl RefUnwindSafe for Prop
impl UnwindSafe for Prop
Blanket Implementations
Mutably borrows from an owned value. Read more