#[non_exhaustive]pub struct ScalarState {
pub value: Option<ScalarValue>,
pub set_by: Option<Origin>,
pub reset_by: Option<Origin>,
}Expand description
Where a scalar setting of a Resolution ended up.
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.value: Option<ScalarValue>The value of the last rule folded that set it, or None when no rule
set it or a later rule reset it.
set_by: Option<Origin>The rule of that value; Some exactly when value is.
reset_by: Option<Origin>The rule that reset the setting to default when no rule folded
after it set it again; never Some together with value.
Trait Implementations§
Source§impl Clone for ScalarState
impl Clone for ScalarState
Source§fn clone(&self) -> ScalarState
fn clone(&self) -> ScalarState
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 ScalarState
impl Debug for ScalarState
Source§impl Default for ScalarState
impl Default for ScalarState
Source§fn default() -> ScalarState
fn default() -> ScalarState
Returns the “default value” for a type. Read more
impl Eq for ScalarState
Source§impl PartialEq for ScalarState
impl PartialEq for ScalarState
impl StructuralPartialEq for ScalarState
Auto Trait Implementations§
impl Freeze for ScalarState
impl RefUnwindSafe for ScalarState
impl Send for ScalarState
impl Sync for ScalarState
impl Unpin for ScalarState
impl UnsafeUnpin for ScalarState
impl UnwindSafe for ScalarState
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