[−][src]Struct skill_tree::SkillTree
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for SkillTree
impl Send for SkillTree
impl Sync for SkillTree
impl Unpin for SkillTree
impl UnwindSafe for SkillTree
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,