pub enum Fraction {
Show 26 variants
Half,
Third,
TwoThirds,
Quarter,
TwoQuarters,
ThreeQuarters,
Fifth,
TwoFifths,
ThreeFifths,
FourFifths,
Sixth,
TwoSixths,
ThreeSixths,
FourSixths,
FiveSixths,
Twelfth,
TwoTwelfths,
ThreeTwelfths,
FourTwelfths,
FiveTwelfths,
SixTwelfths,
SevenTwelfths,
EightTwelfths,
NineTwelfths,
TenTwelfths,
ElevenTwelfths,
}Expand description
Fraction enum for fractional sizing
Variants§
Half
1/2 fraction
Third
1/3 fraction
TwoThirds
2/3 fraction
Quarter
1/4 fraction
TwoQuarters
2/4 fraction
ThreeQuarters
3/4 fraction
Fifth
1/5 fraction
TwoFifths
2/5 fraction
ThreeFifths
3/5 fraction
FourFifths
4/5 fraction
Sixth
1/6 fraction
TwoSixths
2/6 fraction
ThreeSixths
3/6 fraction
FourSixths
4/6 fraction
FiveSixths
5/6 fraction
Twelfth
1/12 fraction
TwoTwelfths
2/12 fraction
ThreeTwelfths
3/12 fraction
FourTwelfths
4/12 fraction
FiveTwelfths
5/12 fraction
SixTwelfths
6/12 fraction
SevenTwelfths
7/12 fraction
EightTwelfths
8/12 fraction
NineTwelfths
9/12 fraction
TenTwelfths
10/12 fraction
ElevenTwelfths
11/12 fraction
Implementations§
Source§impl Fraction
impl Fraction
pub fn to_class_name(&self) -> String
pub fn to_css_value(&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.