Struct okane_core::load::Loader
source · pub struct Loader { /* private fields */ }Expand description
Loader is an object to keep loading a given file and may recusrively load them as repr::LedgerEntry,
with the metadata about filename or line/column to point the error in a user friendly manner.
Implementations§
source§impl Loader
impl Loader
sourcepub fn new(source: PathBuf) -> Self
pub fn new(source: PathBuf) -> Self
Create a new instance of Loader to load the given path.
It might look weird to have the source path as a Loader member,
but that would give future flexibility to support loading from stdio/network without include,
or completely static one.
Auto Trait Implementations§
impl Freeze for Loader
impl RefUnwindSafe for Loader
impl Send for Loader
impl Sync for Loader
impl Unpin for Loader
impl UnwindSafe for Loader
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