pub struct PropertyState {
pub metadata: PropertyMetadata,
pub current_value: Option<PropertyValue>,
pub default_value: Option<PropertyValue>,
}Expand description
Current/default values associated with one runtime-discovered property. Action-only properties such as buttons intentionally have no data value while retaining their metadata.
Fields§
§metadata: PropertyMetadata§current_value: Option<PropertyValue>§default_value: Option<PropertyValue>Trait Implementations§
Source§impl Clone for PropertyState
impl Clone for PropertyState
Source§fn clone(&self) -> PropertyState
fn clone(&self) -> PropertyState
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 PropertyState
impl Debug for PropertyState
Source§impl PartialEq for PropertyState
impl PartialEq for PropertyState
impl StructuralPartialEq for PropertyState
Auto Trait Implementations§
impl Freeze for PropertyState
impl RefUnwindSafe for PropertyState
impl Send for PropertyState
impl Sync for PropertyState
impl Unpin for PropertyState
impl UnsafeUnpin for PropertyState
impl UnwindSafe for PropertyState
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