pub struct Found {
pub name: String,
pub source: Source,
pub dir: PathBuf,
pub path: PathBuf,
pub state: Result<Skill, String>,
pub shadows: Vec<Shadowed>,
}Expand description
A discovered skill, loaded or not.
Fields§
§name: StringThe declared name; the directory’s name when the file would not say.
source: Source§dir: PathBufThe skill’s directory.
path: PathBufIts SKILL.md.
state: Result<Skill, String>The skill, or the reason it is broken.
shadows: Vec<Shadowed>What this skill won the name from, nearest loser first. Empty when nothing clashed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Found
impl Freeze for Foundwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Shadowed>: Freeze,
impl Move for Found
impl RefUnwindSafe for Found
impl Send for Foundwhere
RawVecInner: Send,
impl Sync for Foundwhere
RawVecInner: Sync,
impl Unpin for Found
impl UnsafeUnpin for Foundwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Shadowed>: UnsafeUnpin,
impl UnwindSafe for Foundwhere
RawVecInner: UnwindSafe,
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