pub enum MediaFit {
Contain,
Width,
}Expand description
How the intrinsic size maps into the block’s box.
Variants§
Contain
Scale down to fit the box, preserving aspect ratio; never scale up. The default because upscaling a small diagram is worse than showing it small.
Width
Scale to the box’s width, preserving aspect ratio, and let the row count follow from the result.
Trait Implementations§
impl Copy for MediaFit
impl Eq for MediaFit
impl StructuralPartialEq for MediaFit
Auto Trait Implementations§
impl Freeze for MediaFit
impl RefUnwindSafe for MediaFit
impl Send for MediaFit
impl Sync for MediaFit
impl Unpin for MediaFit
impl UnsafeUnpin for MediaFit
impl UnwindSafe for MediaFit
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