pub enum Fraction {
Show 15 variants
Half,
Third,
TwoThirds,
Quarter,
TwoQuarters,
ThreeQuarters,
Fifth,
TwoFifths,
ThreeFifths,
FourFifths,
Sixth,
TwoSixths,
ThreeSixths,
FourSixths,
FiveSixths,
}
Expand description
Fractional sizing values
Variants§
Half
1/2
Third
1/3
TwoThirds
2/3
Quarter
1/4
TwoQuarters
2/4
ThreeQuarters
3/4
Fifth
1/5
TwoFifths
2/5
ThreeFifths
3/5
FourFifths
4/5
Sixth
1/6
TwoSixths
2/6
ThreeSixths
3/6
FourSixths
4/6
FiveSixths
5/6
Implementations§
Source§impl Fraction
impl Fraction
pub fn to_css_value(&self) -> String
pub fn to_class_name(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fraction
impl<'de> Deserialize<'de> for Fraction
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 Fraction
impl Eq for Fraction
impl StructuralPartialEq for Fraction
Auto Trait Implementations§
impl Freeze for Fraction
impl RefUnwindSafe for Fraction
impl Send for Fraction
impl Sync for Fraction
impl Unpin for Fraction
impl UnwindSafe for Fraction
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.