pub struct Skill {
pub name: String,
pub files: BTreeMap<String, Vec<u8>>,
}Expand description
A skill: its name (its folder’s) and its files.
Fields§
§name: StringIts name, its folder’s.
files: BTreeMap<String, Vec<u8>>Every file of its folder, by its path from there (/-separated),
with its bytes.
Implementations§
Source§impl Skill
impl Skill
Sourcepub fn frontmatter(&self) -> Result<Frontmatter, String>
pub fn frontmatter(&self) -> Result<Frontmatter, String>
Its frontmatter, read; or what is wrong with it.
Sourcepub fn has_example(&self) -> bool
pub fn has_example(&self) -> bool
Whether it has a worked example.
Trait Implementations§
impl Eq for Skill
impl StructuralPartialEq for Skill
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.