pub enum ZIndex {
Show 14 variants
Auto,
Zero,
Ten,
Twenty,
Thirty,
Forty,
Fifty,
OneHundred,
TwoHundred,
ThreeHundred,
FourHundred,
FiveHundred,
OneThousand,
Max,
}
Expand description
Z-index values
Variants§
Auto
Auto z-index
Zero
Z-index 0
Ten
Z-index 10
Twenty
Z-index 20
Thirty
Z-index 30
Forty
Z-index 40
Fifty
Z-index 50
OneHundred
Z-index 100
TwoHundred
Z-index 200
ThreeHundred
Z-index 300
FourHundred
Z-index 400
FiveHundred
Z-index 500
OneThousand
Z-index 1000
Max
Z-index 9999
Implementations§
Source§impl ZIndex
impl ZIndex
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Sourcepub fn all_values() -> Vec<ZIndex>
pub fn all_values() -> Vec<ZIndex>
Get all available z-index values
Sourcepub fn to_numeric_value(&self) -> Option<i32>
pub fn to_numeric_value(&self) -> Option<i32>
Get the numeric value of the z-index
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZIndex
impl<'de> Deserialize<'de> for ZIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ZIndex
impl Eq for ZIndex
impl StructuralPartialEq for ZIndex
Auto Trait Implementations§
impl Freeze for ZIndex
impl RefUnwindSafe for ZIndex
impl Send for ZIndex
impl Sync for ZIndex
impl Unpin for ZIndex
impl UnwindSafe for ZIndex
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.