pub struct ImageView<'a> {
pub path: &'a Path,
pub rect: Rect,
pub fit: Fit,
}Expand description
An image, ready to draw.
Fields§
§path: &'a PathThe file to show.
rect: RectWhere: a box of the image’s size, centered in the node.
fit: FitHow the picture fills the box.
Auto Trait Implementations§
impl<'a> Forget for ImageView<'a>
impl<'a> Freeze for ImageView<'a>
impl<'a> Move for ImageView<'a>
impl<'a> RefUnwindSafe for ImageView<'a>
impl<'a> Send for ImageView<'a>
impl<'a> Sync for ImageView<'a>
impl<'a> Unpin for ImageView<'a>
impl<'a> UnsafeUnpin for ImageView<'a>
impl<'a> UnwindSafe for ImageView<'a>
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