Struct skill_tree::SkillTree[][src]

pub struct SkillTree {
    pub group: Vec<Group>,
    pub cluster: Option<Vec<Cluster>>,
    pub graphviz: Option<Graphviz>,
    pub doc: Option<Doc>,
}

Fields

group: Vec<Group>cluster: Option<Vec<Cluster>>graphviz: Option<Graphviz>doc: Option<Doc>

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 groups(&self) -> impl Iterator<Item = &Group>[src]

pub fn group_named(&self, name: &str) -> Option<&Group>[src]

pub fn columns(&self) -> &[String][src]

Returns the expected column titles for each item (excluding the label).

pub fn emoji<'me>(&'me self, column: &str, input: &'me str) -> &'me str[src]

Translates an “input” into an emoji, returning “input” if not found.

Trait Implementations

impl Debug for SkillTree[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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