Struct sgf::sgf_node::SgfNode [] [src]

pub struct SgfNode {
    pub children: Vec<SgfNode>,
    // some fields omitted
}

SGF node with children. It means that a node also represents game tree. Access the field 'children' directly to traverse in its tree. To access SGF properties of the node, use various accessors below.

Fields

Methods

impl SgfNode
[src]

[src]

Constructor. Returns an SgfNode with given propertes. Properties should be stored in a HashMap in String name and a vector of String value.

[src]

Returns a mutable reference of a leaf node in main line This is for the parser.

[src]

Returns an iterator of its properties.

[src]

Returns a Result of id's value as SgfPoint.

[src]

Sets an SgfpPoint value to property id.

[src]

Returns a Result of id's value as SgfNumber.

[src]

Sets an SgfpNumber value to property id.

[src]

Returns a Result of id's value as a vector of SgfPoint.

[src]

Sets an SgfPoint vector to property id.

[src]

Returns a Result of id's value as SgfColor.

[src]

Sets an SgfColor to property id.

[src]

Returns a Result of id's value as SgfDouble.

[src]

Sets an SgfDouble to property id.

[src]

Returns a Result of id's value as SgfText.

[src]

Sets an SgfText to property id.

[src]

Returns a Result of id's value as SgfSimpleText.

[src]

Sets an SgfSimpleText to property id.

[src]

Returns a Result of id's value as SgfReal.

[src]

Sets an SgfReal to property id.

[src]

Returns a Result of id's value as Compose of SgfPoints.

[src]

Sets a compose of SgfPoints to property id.

[src]

Returns a Result of id's value as Compose of SgfPoint and SgfSimpleText.

[src]

Sets a compose of SgfPoint and SgfSimpleText to property id.

[src]

Returns a Result of id's value as Compose of SgfSimpleTexts.

[src]

Sets a compose of SgfSimpleTexts to property id.

[src]

Returns a Result of id's value as Compose of SgfNumbers.

[src]

Sets a compose of SgfNumbers to property id.

[src]

Returns a Result of id's value as Compose of SgfNumber and SgfSimpleText.

[src]

Sets a compose of SgfNumber and SgfSimpleText to property id.

Trait Implementations

impl Debug for SgfNode
[src]

[src]

Formats the value using the given formatter.

impl Display for SgfNode
[src]

[src]

Formats the value using the given formatter. Read more