pub enum GridFraction {
OneTwelfth,
TwoTwelfths,
ThreeTwelfths,
FourTwelfths,
FiveTwelfths,
SixTwelfths,
SevenTwelfths,
EightTwelfths,
NineTwelfths,
TenTwelfths,
ElevenTwelfths,
}
Expand description
12-column grid fractions
Variants§
OneTwelfth
1/12
TwoTwelfths
2/12
ThreeTwelfths
3/12
FourTwelfths
4/12
FiveTwelfths
5/12
SixTwelfths
6/12
SevenTwelfths
7/12
EightTwelfths
8/12
NineTwelfths
9/12
TenTwelfths
10/12
ElevenTwelfths
11/12
Implementations§
Source§impl GridFraction
impl GridFraction
pub fn to_css_value(&self) -> String
pub fn to_class_name(&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 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.