#[non_exhaustive]pub enum MaxInlineSize {
FitContent,
MaxContent,
MinContent,
None,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of max-inline-size.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FitContent
fit-content.
MaxContent
max-content.
MinContent
min-content.
None
none.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for MaxInlineSize
impl Clone for MaxInlineSize
Source§fn clone(&self) -> MaxInlineSize
fn clone(&self) -> MaxInlineSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MaxInlineSize
impl Debug for MaxInlineSize
Source§impl Display for MaxInlineSize
impl Display for MaxInlineSize
Source§impl From<Length> for MaxInlineSize
impl From<Length> for MaxInlineSize
Source§impl From<Percentage> for MaxInlineSize
impl From<Percentage> for MaxInlineSize
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for MaxInlineSize
impl From<Raw> for MaxInlineSize
Source§impl PartialEq for MaxInlineSize
impl PartialEq for MaxInlineSize
impl StructuralPartialEq for MaxInlineSize
Auto Trait Implementations§
impl Freeze for MaxInlineSize
impl RefUnwindSafe for MaxInlineSize
impl Send for MaxInlineSize
impl Sync for MaxInlineSize
impl Unpin for MaxInlineSize
impl UnsafeUnpin for MaxInlineSize
impl UnwindSafe for MaxInlineSize
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