pub struct LoaderChain { /* private fields */ }Expand description
Composite loader that chains multiple loaders.
Loaders are tried in priority order (highest first) until one can handle the requested location.
Implementations§
Source§impl LoaderChain
impl LoaderChain
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create a loader chain with default loaders (embedded + filesystem).
Sourcepub fn add(&mut self, loader: Box<dyn SchemaLoader>)
pub fn add(&mut self, loader: Box<dyn SchemaLoader>)
Add a loader to the chain.
Loaders are automatically sorted by priority (highest first).
Trait Implementations§
Source§impl Debug for LoaderChain
impl Debug for LoaderChain
Source§impl Default for LoaderChain
impl Default for LoaderChain
Source§fn default() -> LoaderChain
fn default() -> LoaderChain
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LoaderChain
impl !UnwindSafe for LoaderChain
impl Freeze for LoaderChain
impl Send for LoaderChain
impl Sync for LoaderChain
impl Unpin for LoaderChain
impl UnsafeUnpin for LoaderChain
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