[][src]Struct skill_tree::SkillTree

pub struct SkillTree {
    pub group: Vec<Group>,
    pub goal: Option<Vec<Goal>>,
}

Fields

group: Vec<Group>goal: Option<Vec<Goal>>

Implementations

impl SkillTree[src]

pub fn write_graphviz(&self, output: &mut dyn Write) -> Result<(), Error>[src]

Writes graphviz representing this skill-tree to the given output.

pub fn to_graphviz(&self) -> Result<String, Error>[src]

Generates a string containing graphviz content for this skill-tree.

impl SkillTree[src]

pub fn load(path: &Path) -> Result<SkillTree, Error>[src]

pub fn parse(text: &str) -> Result<SkillTree, Error>[src]

pub fn validate(&self) -> Result<(), Error>[src]

pub fn is_goal(&self, name: &str) -> bool[src]

pub fn goals(&self) -> impl Iterator<Item = &Goal>[src]

pub fn groups(&self) -> impl Iterator<Item = &Group>[src]

Trait Implementations

impl Debug for SkillTree[src]

impl<'de> Deserialize<'de> for SkillTree[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.