pub enum Dimension {
Frequency(Frequency),
Length(Length),
Resolution(Resolution),
Time(Time),
}Expand description
Variants§
Implementations§
Source§impl Dimension
impl Dimension
Sourcepub const fn is_frequency(&self) -> bool
pub const fn is_frequency(&self) -> bool
Returns true if the enum is Dimension::Frequency otherwise false
Sourcepub const fn is_length(&self) -> bool
pub const fn is_length(&self) -> bool
Returns true if the enum is Dimension::Length otherwise false
Sourcepub const fn is_resolution(&self) -> bool
pub const fn is_resolution(&self) -> bool
Returns true if the enum is Dimension::Resolution otherwise false
Trait Implementations§
Source§impl AbsoluteLengthStorage for Dimension
impl AbsoluteLengthStorage for Dimension
fn absolute_length(value: AbsoluteLength) -> Selfwhere
Self: Sized,
Source§impl CapHeightStorage for Dimension
impl CapHeightStorage for Dimension
Source§impl CentimeterStorage for Dimension
impl CentimeterStorage for Dimension
Source§impl CharSizeStorage for Dimension
impl CharSizeStorage for Dimension
Source§impl ContainerLengthStorage for Dimension
impl ContainerLengthStorage for Dimension
fn container_length(value: ContainerLength) -> Selfwhere
Self: Sized,
Source§impl ContainerQueryMaxStorage for Dimension
impl ContainerQueryMaxStorage for Dimension
Source§impl ContainerQueryMinStorage for Dimension
impl ContainerQueryMinStorage for Dimension
Source§impl DotsPerCentimeterStorage for Dimension
impl DotsPerCentimeterStorage for Dimension
Source§impl DotsPerInchStorage for Dimension
impl DotsPerInchStorage for Dimension
Source§impl DotsPerPixelStorage for Dimension
impl DotsPerPixelStorage for Dimension
Source§impl FontLengthStorage for Dimension
impl FontLengthStorage for Dimension
fn font_length(value: FontLength) -> Selfwhere
Self: Sized,
Source§impl FrequencyStorage for Dimension
impl FrequencyStorage for Dimension
Source§impl From<AbsoluteLength> for Dimension
impl From<AbsoluteLength> for Dimension
Source§fn from(value: AbsoluteLength) -> Self
fn from(value: AbsoluteLength) -> Self
Converts to this type from the input type.
Source§impl From<ContainerLength> for Dimension
impl From<ContainerLength> for Dimension
Source§fn from(value: ContainerLength) -> Self
fn from(value: ContainerLength) -> Self
Converts to this type from the input type.
Source§impl From<FontLength> for Dimension
impl From<FontLength> for Dimension
Source§fn from(value: FontLength) -> Self
fn from(value: FontLength) -> Self
Converts to this type from the input type.
Source§impl From<RelativeLength> for Dimension
impl From<RelativeLength> for Dimension
Source§fn from(value: RelativeLength) -> Self
fn from(value: RelativeLength) -> Self
Converts to this type from the input type.
Source§impl From<Resolution> for Dimension
impl From<Resolution> for Dimension
Source§fn from(value: Resolution) -> Self
fn from(value: Resolution) -> Self
Converts to this type from the input type.
Source§impl From<ViewportLength> for Dimension
impl From<ViewportLength> for Dimension
Source§fn from(value: ViewportLength) -> Self
fn from(value: ViewportLength) -> Self
Converts to this type from the input type.
Source§impl HertzStorage for Dimension
impl HertzStorage for Dimension
Source§impl InchStorage for Dimension
impl InchStorage for Dimension
Source§impl KilohertzStorage for Dimension
impl KilohertzStorage for Dimension
Source§impl LargeViewportMaxStorage for Dimension
impl LargeViewportMaxStorage for Dimension
Source§impl LargeViewportMinStorage for Dimension
impl LargeViewportMinStorage for Dimension
Source§impl LineHeightStorage for Dimension
impl LineHeightStorage for Dimension
Source§impl MillimeterStorage for Dimension
impl MillimeterStorage for Dimension
Source§impl MillisecondStorage for Dimension
impl MillisecondStorage for Dimension
Source§impl PicaStorage for Dimension
impl PicaStorage for Dimension
Source§impl PixelStorage for Dimension
impl PixelStorage for Dimension
Source§impl PointStorage for Dimension
impl PointStorage for Dimension
Source§impl RelativeCapHeightStorage for Dimension
impl RelativeCapHeightStorage for Dimension
Source§impl RelativeCharSizeStorage for Dimension
impl RelativeCharSizeStorage for Dimension
Source§impl RelativeEmStorage for Dimension
impl RelativeEmStorage for Dimension
Source§impl RelativeExStorage for Dimension
impl RelativeExStorage for Dimension
Source§impl RelativeIcStorage for Dimension
impl RelativeIcStorage for Dimension
Source§impl RelativeLengthStorage for Dimension
impl RelativeLengthStorage for Dimension
fn relative_length(value: RelativeLength) -> Selfwhere
Self: Sized,
Source§impl ResolutionStorage for Dimension
impl ResolutionStorage for Dimension
fn resolution(value: Resolution) -> Selfwhere
Self: Sized,
Source§impl SecondStorage for Dimension
impl SecondStorage for Dimension
Source§impl SmallViewportMaxStorage for Dimension
impl SmallViewportMaxStorage for Dimension
Source§impl SmallViewportMinStorage for Dimension
impl SmallViewportMinStorage for Dimension
Source§impl ViewportBlockStorage for Dimension
impl ViewportBlockStorage for Dimension
Source§impl ViewportHeightStorage for Dimension
impl ViewportHeightStorage for Dimension
Source§impl ViewportInlineStorage for Dimension
impl ViewportInlineStorage for Dimension
Source§impl ViewportLengthStorage for Dimension
impl ViewportLengthStorage for Dimension
fn viewport_length(value: ViewportLength) -> Selfwhere
Self: Sized,
Source§impl ViewportMaxStorage for Dimension
impl ViewportMaxStorage for Dimension
Source§impl ViewportMinStorage for Dimension
impl ViewportMinStorage for Dimension
Source§impl ViewportWidthStorage for Dimension
impl ViewportWidthStorage for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnwindSafe for Dimension
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