#[non_exhaustive]pub struct EnvironmentPins {
pub locale: Option<Locale>,
pub languages: Option<Languages>,
pub hour_cycle: Option<HourCycle>,
pub first_day_of_week: Option<Weekday>,
pub measurement_system: Option<MeasurementSystem>,
pub temperature_unit: Option<TemperatureUnit>,
pub time_zone: Option<TimeZone>,
pub reduce_motion: Option<bool>,
pub safe_area: Option<Edges<Points>>,
}Expand description
Values of the environment an engine keeps whatever its platform reports
(EngineConfig::pinned); None leaves the platform’s.
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.locale: Option<Locale>The locale (Environment::locale).
languages: Option<Languages>The preferred languages (LocaleSettings::languages).
hour_cycle: Option<HourCycle>The hour cycle (LocaleSettings::hour_cycle).
first_day_of_week: Option<Weekday>The first day of the week (LocaleSettings::first_day_of_week).
measurement_system: Option<MeasurementSystem>The measurement system (LocaleSettings::measurement_system).
temperature_unit: Option<TemperatureUnit>The temperature unit (LocaleSettings::temperature_unit).
time_zone: Option<TimeZone>The time zone (LocaleSettings::time_zone).
reduce_motion: Option<bool>Whether the user asked for less motion
(Environment::reduce_motion).
safe_area: Option<Edges<Points>>The safe area insets (Environment::safe_area).
Implementations§
Source§impl EnvironmentPins
impl EnvironmentPins
Sourcepub fn apply(&self, environment: &mut Environment)
pub fn apply(&self, environment: &mut Environment)
environment with these values in place of the platform’s.
Trait Implementations§
Source§impl Clone for EnvironmentPins
impl Clone for EnvironmentPins
impl Copy for EnvironmentPins
Source§impl Debug for EnvironmentPins
impl Debug for EnvironmentPins
Source§impl Default for EnvironmentPins
impl Default for EnvironmentPins
Source§impl PartialEq for EnvironmentPins
impl PartialEq for EnvironmentPins
impl StructuralPartialEq for EnvironmentPins
Auto Trait Implementations§
impl Forget for EnvironmentPins
impl Freeze for EnvironmentPins
impl Move for EnvironmentPins
impl RefUnwindSafe for EnvironmentPins
impl Send for EnvironmentPins
impl Sync for EnvironmentPins
impl Unpin for EnvironmentPins
impl UnsafeUnpin for EnvironmentPins
impl UnwindSafe for EnvironmentPins
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