pub enum SurfaceSize {
Fixed(u32, u32),
Auto,
}Expand description
A surface’s size: a fixed logical pixel box, or derived from its content.
Variants§
Trait Implementations§
Source§impl Clone for SurfaceSize
impl Clone for SurfaceSize
Source§fn clone(&self) -> SurfaceSize
fn clone(&self) -> SurfaceSize
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 moreimpl Copy for SurfaceSize
Source§impl Debug for SurfaceSize
impl Debug for SurfaceSize
Source§impl PartialEq for SurfaceSize
impl PartialEq for SurfaceSize
impl StructuralPartialEq for SurfaceSize
Auto Trait Implementations§
impl Freeze for SurfaceSize
impl RefUnwindSafe for SurfaceSize
impl Send for SurfaceSize
impl Sync for SurfaceSize
impl Unpin for SurfaceSize
impl UnsafeUnpin for SurfaceSize
impl UnwindSafe for SurfaceSize
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