pub enum ContainerAspectRatio {
Square,
Video,
Widescreen,
Ultrawide,
Custom(String),
}
Expand description
Container aspect ratio values
Variants§
Implementations§
Source§impl ContainerAspectRatio
impl ContainerAspectRatio
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Convert to CSS value
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Convert to class name
Trait Implementations§
Source§impl Clone for ContainerAspectRatio
impl Clone for ContainerAspectRatio
Source§fn clone(&self) -> ContainerAspectRatio
fn clone(&self) -> ContainerAspectRatio
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 ContainerAspectRatio
impl Debug for ContainerAspectRatio
Source§impl<'de> Deserialize<'de> for ContainerAspectRatio
impl<'de> Deserialize<'de> for ContainerAspectRatio
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 ContainerAspectRatio
impl Display for ContainerAspectRatio
Source§impl Hash for ContainerAspectRatio
impl Hash for ContainerAspectRatio
Source§impl PartialEq for ContainerAspectRatio
impl PartialEq for ContainerAspectRatio
Source§impl Serialize for ContainerAspectRatio
impl Serialize for ContainerAspectRatio
impl Eq for ContainerAspectRatio
impl StructuralPartialEq for ContainerAspectRatio
Auto Trait Implementations§
impl Freeze for ContainerAspectRatio
impl RefUnwindSafe for ContainerAspectRatio
impl Send for ContainerAspectRatio
impl Sync for ContainerAspectRatio
impl Unpin for ContainerAspectRatio
impl UnwindSafe for ContainerAspectRatio
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.