[][src]Struct kb::Loader

pub struct Loader { /* fields omitted */ }

Implementations

impl Loader[src]

pub fn new() -> Self[src]

pub fn add_source(&mut self, source: Rc<Source>)[src]

pub fn add_source_root<P: Into<PathBuf>>(&mut self, path: P)[src]

pub fn find_source(
    &mut self,
    module_name: &RcStr
) -> Result<Option<&Rc<Source>>, BasicError>
[src]

pub fn list_child_modules(
    &mut self,
    module_name: &RcStr
) -> Result<Vec<RcStr>, BasicError>
[src]

pub fn load(&mut self, module_name: &RcStr) -> Result<Vec<File>, BasicError>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Loader

impl !Send for Loader

impl !Sync for Loader

impl Unpin for Loader

impl !UnwindSafe for Loader

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> 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.