pub struct Annotated<'a> {
pub pixels: &'a [u8],
pub whole: &'a [Quad],
}Expand description
The same tile drawn with its annotations, and the rectangles kept whole.
Added in 0.2.0.
Fields§
§pixels: &'a [u8]The tile with annotations: same size as the one being recoloured.
whole: &'a [Quad]In tile pixels, the rectangles of the annotations mostly_changed picked: every pixel
inside comes from pixels, so text under a highlight keeps its colour.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Annotated<'a>
impl<'a> Freeze for Annotated<'a>
impl<'a> Move for Annotated<'a>
impl<'a> RefUnwindSafe for Annotated<'a>
impl<'a> Send for Annotated<'a>
impl<'a> Sync for Annotated<'a>
impl<'a> Unpin for Annotated<'a>
impl<'a> UnsafeUnpin for Annotated<'a>
impl<'a> UnwindSafe for Annotated<'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