Enum icu_datagen::Out
source · [−]#[non_exhaustive]
pub enum Out {
Fs {
output_path: PathBuf,
serializer: Box<dyn AbstractSerializer + Sync>,
overwrite: bool,
fingerprint: bool,
},
Blob(Box<dyn Write + Sync>),
Module {
mod_directory: PathBuf,
pretty: bool,
insert_feature_gates: bool,
use_separate_crates: bool,
},
}
Expand description
The output format.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Fs
Fields
output_path: PathBuf
The root path.
serializer: Box<dyn AbstractSerializer + Sync>
The serialization format. See icu_provider_fs::export::serializers.
overwrite: bool
Whether to overwrite existing data.
fingerprint: bool
Whether to create a fingerprint file with SHA2 hashes
Output to a file system tree
Blob(Box<dyn Write + Sync>)
Output as a postcard blob to the given sink.
Module
Fields
mod_directory: PathBuf
The directory of the generated module.
pretty: bool
Whether to run rustfmt
on the generated files.
insert_feature_gates: bool
Whether to gate each key on its crate name. This allows using the module even if some keys are not required and their dependencies are not included. Requires use_separate_crates.
use_separate_crates: bool
Whether to use separate crates to name types instead of the icu
metacrate
Output a module at the given location.
Auto Trait Implementations
impl !RefUnwindSafe for Out
impl !Send for Out
impl Sync for Out
impl Unpin for Out
impl !UnwindSafe for Out
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Filterable for T
impl<T> Filterable for T
sourcefn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more