pub struct Kept<'a> {
pub images: &'a [Quad],
pub see_through: &'a [Quad],
pub background: Option<Rgba8>,
pub annotated: Option<Annotated<'a>>,
}Expand description
What a recoloured tile keeps as drawn.
Added in 0.2.0.
Fields§
§images: &'a [Quad]Opaque images: every pixel inside is kept.
see_through: &'a [Quad]Images that let the page show through (a soft mask, a mask, a blend mode other than
Normal): inside, only pixels that differ from background are kept, so the paper around
a masked shape is recoloured with the page.
background: Option<Rgba8>The tile’s background (None: transparent).
annotated: Option<Annotated<'a>>The tile drawn again with its annotations.
Trait Implementations§
impl<'a> Copy for Kept<'a>
Auto Trait Implementations§
impl<'a> Forget for Kept<'a>
impl<'a> Freeze for Kept<'a>
impl<'a> Move for Kept<'a>
impl<'a> RefUnwindSafe for Kept<'a>
impl<'a> Send for Kept<'a>
impl<'a> Sync for Kept<'a>
impl<'a> Unpin for Kept<'a>
impl<'a> UnsafeUnpin for Kept<'a>
impl<'a> UnwindSafe for Kept<'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