pub struct ExporterRegistry { /* private fields */ }
Expand description
Exporter registry.
A database in which all exporters are stored.
The registry is used to find exporters by their id and their file extension.
Implementations§
Trait Implementations§
Source§impl Default for ExporterRegistry
impl Default for ExporterRegistry
Source§fn default() -> ExporterRegistry
fn default() -> ExporterRegistry
Returns the “default value” for a type. Read more
Source§impl ExporterAccess for ExporterRegistry
impl ExporterAccess for ExporterRegistry
Source§fn exporter_by_id(&self, id: &Id) -> Result<Rc<dyn Exporter>, ExportError>
fn exporter_by_id(&self, id: &Id) -> Result<Rc<dyn Exporter>, ExportError>
Get exporter by id.
Source§fn exporter_by_filename(
&self,
filename: &Path,
) -> Result<Rc<dyn Exporter>, ExportError>
fn exporter_by_filename( &self, filename: &Path, ) -> Result<Rc<dyn Exporter>, ExportError>
Get exporter by filename.
Source§fn find_exporter(
&self,
filename: &Path,
id: &Option<Id>,
) -> Result<Rc<dyn Exporter>, ExportError>
fn find_exporter( &self, filename: &Path, id: &Option<Id>, ) -> Result<Rc<dyn Exporter>, ExportError>
Find an exporter by filename, or by id.
Auto Trait Implementations§
impl Freeze for ExporterRegistry
impl !RefUnwindSafe for ExporterRegistry
impl !Send for ExporterRegistry
impl !Sync for ExporterRegistry
impl Unpin for ExporterRegistry
impl !UnwindSafe for ExporterRegistry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more