pub struct InputRegistry { /* private fields */ }Implementations§
Source§impl InputRegistry
impl InputRegistry
pub fn new() -> Self
pub fn register<P: InputPlugin + 'static>(&mut self, plugin: P) -> Result<()>
pub fn plugins(&self) -> Vec<InputPluginInfo>
Sourcepub fn load(
&self,
format: &str,
provider: Option<&str>,
path: &Path,
) -> Result<LoadedInput>
pub fn load( &self, format: &str, provider: Option<&str>, path: &Path, ) -> Result<LoadedInput>
Several providers may serve the same format; callers select the provider explicitly when automatic selection would be ambiguous.
pub fn load_with_options( &self, format: &str, provider: Option<&str>, path: &Path, options: &InputOptions, ) -> Result<LoadedInput>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InputRegistry
impl !UnwindSafe for InputRegistry
impl Freeze for InputRegistry
impl Send for InputRegistry
impl Sync for InputRegistry
impl Unpin for InputRegistry
impl UnsafeUnpin for InputRegistry
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