pub enum SizePolicy {
Absolute {
width: u32,
height: u32,
},
Relative {
width_scale: f32,
height_scale: f32,
},
}Expand description
Description of the dimensions / scale of a texture.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SizePolicy
impl Clone for SizePolicy
Source§fn clone(&self) -> SizePolicy
fn clone(&self) -> SizePolicy
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 SizePolicy
impl Debug for SizePolicy
Source§impl PartialEq for SizePolicy
impl PartialEq for SizePolicy
impl Copy for SizePolicy
impl StructuralPartialEq for SizePolicy
Auto Trait Implementations§
impl Freeze for SizePolicy
impl RefUnwindSafe for SizePolicy
impl Send for SizePolicy
impl Sync for SizePolicy
impl Unpin for SizePolicy
impl UnsafeUnpin for SizePolicy
impl UnwindSafe for SizePolicy
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