pub struct Selector {
pub style: Option<String>,
pub state: Option<String>,
/* private fields */
}
Expand description
The selector is used to read a property value from the Theme
.
Fields§
§style: Option<String>
Represents the key of a style.
state: Option<String>
Used to reference the state property list of the given style.
Implementations§
Source§impl Selector
impl Selector
Sourcepub fn clear_state(&mut self)
pub fn clear_state(&mut self)
Clears the current state and reset to default.
Trait Implementations§
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)