Enum tailwind_css::CssBehavior
source · [−]pub enum CssBehavior {
Inherit,
Initial,
Unset,
Revert,
}
Expand description
The CssBehavior
property is specified as one of the CSS global keyword values.
Note that none of these values affect the unicode-bidi and direction properties.
Reference
- https://developer.mozilla.org/en-US/docs/Web/CSS/all
Variants
Inherit
Specifies that all the element’s properties should be changed to their initial values.
Initial
Specifies that all the element’s properties should be changed to their inherited values.
Unset
Specifies that all the element’s properties should be changed to their inherited values if they inherit by default, or to their initial values if not.
Revert
Specifies behavior that depends on the stylesheet origin to which the declaration belongs.
Trait Implementations
sourceimpl Clone for CssBehavior
impl Clone for CssBehavior
sourcefn clone(&self) -> CssBehavior
fn clone(&self) -> CssBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CssBehavior
impl Debug for CssBehavior
sourceimpl Display for CssBehavior
impl Display for CssBehavior
impl Copy for CssBehavior
Auto Trait Implementations
impl RefUnwindSafe for CssBehavior
impl Send for CssBehavior
impl Sync for CssBehavior
impl Unpin for CssBehavior
impl UnwindSafe for CssBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more