pub enum QualityPreset {
Auto,
Low,
Medium,
High,
Ultra,
Custom,
}Expand description
Persisted master graphics-quality choice. Auto resolves from the detected
GPU tier each launch; a named tier (Low..Ultra) is a fixed ceiling; Custom
imposes no ceiling (the user’s per-row overrides drive). In GraphicsSettings
a None (never persisted) means “never configured”: the first launch seeds
Auto and saves once.
Variants§
Auto
Resolve the ceiling from the GPU tier detected at launch.
Low
Fixed low-tier ceiling.
Medium
Fixed mid-tier ceiling.
High
Fixed high-tier ceiling.
Ultra
Fixed top-tier ceiling; the only one that permits ray-traced reflections.
Custom
No ceiling: the world’s authored look and the per-row overrides stand.
Implementations§
Source§impl QualityPreset
impl QualityPreset
Sourcepub const ALL: [QualityPreset; 6]
pub const ALL: [QualityPreset; 6]
The presets in menu-cycle order. The settings-menu master row cycles
through these; GRAPHICS_QUALITY_OPTIONS in gfx::settings holds the
matching display labels in the same order (locked by a test there).
Trait Implementations§
Source§impl Clone for QualityPreset
impl Clone for QualityPreset
Source§fn clone(&self) -> QualityPreset
fn clone(&self) -> QualityPreset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for QualityPreset
Source§impl Debug for QualityPreset
impl Debug for QualityPreset
Source§impl<'de> Deserialize<'de> for QualityPreset
impl<'de> Deserialize<'de> for QualityPreset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for QualityPreset
Source§impl PartialEq for QualityPreset
impl PartialEq for QualityPreset
Source§impl Serialize for QualityPreset
impl Serialize for QualityPreset
impl StructuralPartialEq for QualityPreset
Auto Trait Implementations§
impl Freeze for QualityPreset
impl RefUnwindSafe for QualityPreset
impl Send for QualityPreset
impl Sync for QualityPreset
impl Unpin for QualityPreset
impl UnsafeUnpin for QualityPreset
impl UnwindSafe for QualityPreset
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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