pub enum GridFraction {
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
Grid fraction enum for grid fractional sizing
Variants§
Half
1/2 grid fraction
Third
1/3 grid fraction
TwoThirds
2/3 grid fraction
Quarter
1/4 grid fraction
TwoQuarters
2/4 grid fraction
ThreeQuarters
3/4 grid fraction
Fifth
1/5 grid fraction
TwoFifths
2/5 grid fraction
ThreeFifths
3/5 grid fraction
FourFifths
4/5 grid fraction
Sixth
1/6 grid fraction
TwoSixths
2/6 grid fraction
ThreeSixths
3/6 grid fraction
FourSixths
4/6 grid fraction
FiveSixths
5/6 grid fraction
Twelfth
1/12 grid fraction
TwoTwelfths
2/12 grid fraction
ThreeTwelfths
3/12 grid fraction
FourTwelfths
4/12 grid fraction
FiveTwelfths
5/12 grid fraction
SixTwelfths
6/12 grid fraction
SevenTwelfths
7/12 grid fraction
EightTwelfths
8/12 grid fraction
NineTwelfths
9/12 grid fraction
TenTwelfths
10/12 grid fraction
ElevenTwelfths
11/12 grid fraction
Implementations§
Source§impl GridFraction
impl GridFraction
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Trait Implementations§
Source§impl Clone for GridFraction
impl Clone for GridFraction
Source§fn clone(&self) -> GridFraction
fn clone(&self) -> GridFraction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridFraction
impl Debug for GridFraction
Source§impl<'de> Deserialize<'de> for GridFraction
impl<'de> Deserialize<'de> for GridFraction
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
Source§impl Display for GridFraction
impl Display for GridFraction
Source§impl Hash for GridFraction
impl Hash for GridFraction
Source§impl PartialEq for GridFraction
impl PartialEq for GridFraction
Source§impl Serialize for GridFraction
impl Serialize for GridFraction
impl Copy for GridFraction
impl Eq for GridFraction
impl StructuralPartialEq for GridFraction
Auto Trait Implementations§
impl Freeze for GridFraction
impl RefUnwindSafe for GridFraction
impl Send for GridFraction
impl Sync for GridFraction
impl Unpin for GridFraction
impl UnwindSafe for GridFraction
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.