PropertyTwice

Struct PropertyTwice 

Source
pub struct PropertyTwice<V = &'static str>(/* private fields */);

Trait Implementations§

Source§

impl<V: Display> Utility for PropertyTwice<V>

Source§

fn declarations(&self, f: &mut dyn Write) -> Result

Source§

fn selector_prefix(&self, _f: &mut dyn Write) -> Result

Source§

fn selector_suffix(&self, _f: &mut dyn Write) -> Result

Source§

fn suffix(&self, _f: &mut dyn Write) -> Result

Source§

fn write_animate_from(&self, _f: &mut dyn Write) -> Result

Source§

fn write_animate_to(&self, _f: &mut dyn Write) -> Result

Source§

fn hash_modifier(&self, _hasher: &mut dyn Hasher)

Source§

fn override_class_name(&self) -> Option<&str>

Source§

fn order(&self) -> usize

The higher the returned number the later the style is positioned in the stylesheet to take precedence.
Source§

fn active(self) -> Active<Self>
where Self: Sized,

Apply style only when the element is being pressed (:active).
Source§

fn after(self) -> After<Self>
where Self: Sized,

Apply style to ::after pseude element.
Source§

fn animate_from(self) -> AnimateFrom<Self>
where Self: Sized,

Source§

fn animate_to(self) -> AnimateTo<Self>
where Self: Sized,

Source§

fn apply_to_children(self) -> ApplyToChildren<Self>
where Self: Sized,

Apply style to all direct children (> *).
Source§

fn before(self) -> Before<Self>
where Self: Sized,

Apply style to ::before pseude element.
Source§

fn disabled(self) -> Disabled<Self>
where Self: Sized,

Apply style only when the element is disabled (:disabled).
Source§

fn enabled(self) -> Enabled<Self>
where Self: Sized,

Apply style only when the element is not disabled (:enabled).
Source§

fn focus(self) -> Focus<Self>
where Self: Sized,

Apply style only when the element has focus (:foucs).
Source§

fn focus_visible(self) -> FocusVisible<Self>
where Self: Sized,

Apply style only when the element has been focused using the keyboard (:foucs-visible).
Source§

fn focus_within(self) -> FocusWithin<Self>
where Self: Sized,

Apply style only when the element or one of its descendants has focus (:foucs-within).
Source§

fn group_hover(self) -> GroupHover<Self>
where Self: Sized,

Source§

fn hover(self) -> Hover<Self>
where Self: Sized,

Apply style only when the user hovers over the element (:hover).
Source§

fn visited(self) -> Visited<Self>
where Self: Sized,

Apply style only when the link has already been visited (:visited).
Source§

fn min_width_px(self, min_width_px: u32) -> MinWidth<Self>
where Self: Sized,

Apply style only when browser width is at least min_width_px. @media (min-width: {min_width_px}px)
Source§

fn max_width_px(self, max_width_px: u32) -> MaxWidth<Self>
where Self: Sized,

Apply style only when browser width does not exceed max_width_px. @media (max-width: {max_width_px}px)

Auto Trait Implementations§

§

impl<V> Freeze for PropertyTwice<V>
where V: Freeze,

§

impl<V> RefUnwindSafe for PropertyTwice<V>
where V: RefUnwindSafe,

§

impl<V> Send for PropertyTwice<V>
where V: Send,

§

impl<V> Sync for PropertyTwice<V>
where V: Sync,

§

impl<V> Unpin for PropertyTwice<V>
where V: Unpin,

§

impl<V> UnwindSafe for PropertyTwice<V>
where V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Responsive for T
where T: Utility,

Source§

fn sm(self) -> MinWidth<T>

@media (min-width: 640px)
Source§

fn md(self) -> MinWidth<T>

@media (min-width: 768px)
Source§

fn lg(self) -> MinWidth<T>

@media (min-width: 1024px)
Source§

fn xl(self) -> MinWidth<T>

@media (min-width: 1280px)
Source§

fn xl2(self) -> MinWidth<T>

@media (min-width: 1536px)
Source§

fn max_sm(self) -> MaxWidth<T>

@media (max-width: 767px)
Source§

fn max_md(self) -> MaxWidth<T>

@media (max-width: 1023px)
Source§

fn max_lg(self) -> MaxWidth<T>

@media (max-width: 1279px)
Source§

fn max_xl(self) -> MaxWidth<T>

@media (max-width: 1535px)
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more