pub enum SettingValueDomain {
Boolean,
Number(NumericBounds),
Percent(NumericBounds),
String,
Enum {
domain: String,
},
HeroList,
MapList,
PresenceOnly,
}Expand description
The machine-readable value domain of a setting.
Variants§
Implementations§
Source§impl SettingValueDomain
impl SettingValueDomain
Sourcepub fn effective_number(&self, authored: f64) -> Option<EffectiveNumber>
pub fn effective_number(&self, authored: f64) -> Option<EffectiveNumber>
Apply evidenced effective clamping without changing the authored
value held by super::SettingsNode.
Trait Implementations§
Source§impl Clone for SettingValueDomain
impl Clone for SettingValueDomain
Source§fn clone(&self) -> SettingValueDomain
fn clone(&self) -> SettingValueDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettingValueDomain
impl Debug for SettingValueDomain
Source§impl PartialEq for SettingValueDomain
impl PartialEq for SettingValueDomain
Source§impl PartialOrd for SettingValueDomain
impl PartialOrd for SettingValueDomain
impl StructuralPartialEq for SettingValueDomain
Auto Trait Implementations§
impl Freeze for SettingValueDomain
impl RefUnwindSafe for SettingValueDomain
impl Send for SettingValueDomain
impl Sync for SettingValueDomain
impl Unpin for SettingValueDomain
impl UnsafeUnpin for SettingValueDomain
impl UnwindSafe for SettingValueDomain
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