pub struct Modifiers { /* private fields */ }Expand description
Modifiers for the class, such as “hover:” or “visited:”
Implementations§
Source§impl Modifiers
impl Modifiers
Sourcepub fn set_hover_enabled(&mut self) -> Result<(), ModifierError>
pub fn set_hover_enabled(&mut self) -> Result<(), ModifierError>
Set that the hover modifier is enabled.
Sourcepub fn set_visited_enabled(&mut self) -> Result<(), ModifierError>
pub fn set_visited_enabled(&mut self) -> Result<(), ModifierError>
Set that the visited modifier is enabled.
Sourcepub fn set_min_width_gteq(
&mut self,
screen_width: u32,
) -> Result<(), ModifierError>
pub fn set_min_width_gteq( &mut self, screen_width: u32, ) -> Result<(), ModifierError>
Set the media query screen width >=
Trait Implementations§
Source§impl Ord for Modifiers
impl Ord for Modifiers
Source§impl PartialOrd for Modifiers
impl PartialOrd for Modifiers
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
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§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
Compare self to
key and return true if they are equal.