Struct icu_provider_export::baked_exporter::Options
#[non_exhaustive]pub struct Options {
pub use_internal_fallback: bool,
pub pretty: bool,
pub use_separate_crates: bool,
pub overwrite: bool,
}
Expand description
Options for configuring the output of BakedExporter
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.use_internal_fallback: bool
By default, baked providers perform fallback internally. This field can be used to disable this behavior.
pretty: bool
Whether to run rustfmt
on the generated files.
use_separate_crates: bool
Whether to use separate crates to name types instead of the icu
metacrate.
By default, types will be named through the icu
crate, like icu::list::provider::ListJoinerPattern
.
With this enabled, the alternative name from the component crates will be used: icu_list::provider::ListJoinerPattern
.
This is required when you are not using the icu
crate, and you’re building custom data providers;
data for compiled_data
constructors uses icu
names.
overwrite: bool
Whether to overwrite existing data. By default, errors if it is present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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