pub struct BakedExporter { /* private fields */ }
Expand description
See the module-level documentation for details.
Implementations§
§impl BakedExporter
impl BakedExporter
pub fn new(
mod_directory: PathBuf,
options: Options,
) -> Result<BakedExporter, DataError>
pub fn new( mod_directory: PathBuf, options: Options, ) -> Result<BakedExporter, DataError>
Constructs a new BakedExporter
with the given output directory and options.
Trait Implementations§
§impl DataExporter for BakedExporter
impl DataExporter for BakedExporter
§fn put_payload(
&self,
marker: DataMarkerInfo,
id: DataIdentifierBorrowed<'_>,
payload: &DataPayload<ExportMarker>,
) -> Result<(), DataError>
fn put_payload( &self, marker: DataMarkerInfo, id: DataIdentifierBorrowed<'_>, payload: &DataPayload<ExportMarker>, ) -> Result<(), DataError>
Save a
payload
corresponding to the given marker and locale. Read more§fn flush_singleton(
&self,
marker: DataMarkerInfo,
payload: &DataPayload<ExportMarker>,
_metadata: FlushMetadata,
) -> Result<(), DataError>
fn flush_singleton( &self, marker: DataMarkerInfo, payload: &DataPayload<ExportMarker>, _metadata: FlushMetadata, ) -> Result<(), DataError>
Function called for singleton markers. Read more
Auto Trait Implementations§
impl !Freeze for BakedExporter
impl RefUnwindSafe for BakedExporter
impl Send for BakedExporter
impl Sync for BakedExporter
impl Unpin for BakedExporter
impl UnwindSafe for BakedExporter
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