pub enum ContentScale {
Fit,
Crop,
FillBounds,
FillWidth,
FillHeight,
Inside,
None,
}Variants§
Implementations§
Source§impl ContentScale
impl ContentScale
pub fn scaled_size(self, src_size: Size, dst_size: Size) -> Size
Trait Implementations§
Source§impl Clone for ContentScale
impl Clone for ContentScale
Source§fn clone(&self) -> ContentScale
fn clone(&self) -> ContentScale
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 ContentScale
impl Debug for ContentScale
Source§impl PartialEq for ContentScale
impl PartialEq for ContentScale
impl Copy for ContentScale
impl StructuralPartialEq for ContentScale
Auto Trait Implementations§
impl Freeze for ContentScale
impl RefUnwindSafe for ContentScale
impl Send for ContentScale
impl Sync for ContentScale
impl Unpin for ContentScale
impl UnwindSafe for ContentScale
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