pub enum ViewportDescriptor {
MinWidth(ViewportLength),
MaxWidth(ViewportLength),
Width {
minimum: ViewportLength,
maximum: Option<ViewportLength>,
},
MinHeight(ViewportLength),
MaxHeight(ViewportLength),
Height {
minimum: ViewportLength,
maximum: Option<ViewportLength>,
},
Zoom(ViewportZoom),
MinZoom(ViewportZoom),
MaxZoom(ViewportZoom),
UserZoom(ViewportUserZoom),
Orientation(ViewportOrientation),
}
Variants§
MinWidth(ViewportLength)
MaxWidth(ViewportLength)
Width
Width with no maximum is similar to MinWidth; with both values, it is equivalent to MinWidth and MaxWidth
MinHeight(ViewportLength)
MaxHeight(ViewportLength)
Height
Height with no maximum is similar to MinHeight; with both values, it is equivalent to MinHeight and MaxHeight
Zoom(ViewportZoom)
MinZoom(ViewportZoom)
MaxZoom(ViewportZoom)
UserZoom(ViewportUserZoom)
Orientation(ViewportOrientation)
Implementations§
Trait Implementations§
Source§impl Clone for ViewportDescriptor
impl Clone for ViewportDescriptor
Source§fn clone(&self) -> ViewportDescriptor
fn clone(&self) -> ViewportDescriptor
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 ViewportDescriptor
impl Debug for ViewportDescriptor
Source§impl PartialEq for ViewportDescriptor
impl PartialEq for ViewportDescriptor
Source§impl ToCss for ViewportDescriptor
impl ToCss for ViewportDescriptor
impl StructuralPartialEq for ViewportDescriptor
Auto Trait Implementations§
impl Freeze for ViewportDescriptor
impl RefUnwindSafe for ViewportDescriptor
impl !Send for ViewportDescriptor
impl !Sync for ViewportDescriptor
impl Unpin for ViewportDescriptor
impl UnwindSafe for ViewportDescriptor
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