pub struct CheckImage {
pub jpeg: Vec<u8>,
pub width: u32,
pub height: u32,
pub close_up_source_rect: [u32; 4],
pub text: Vec<String>,
}Expand description
The composed check image.
Fields§
§jpeg: Vec<u8>The JPEG.
width: u32Its width: PANEL_WIDTH.
height: u32Its height: IMAGE_HEIGHT.
close_up_source_rect: [u32; 4]Panel 2’s source, [x, y, w, h] in current-frame pixels.
text: Vec<String>What panel 1’s drawing shows, in lines a check’s turn is told: the layer’s facts, what is hidden, and what each colour drawn means.
Trait Implementations§
Source§impl Clone for CheckImage
impl Clone for CheckImage
Source§impl Debug for CheckImage
impl Debug for CheckImage
impl Eq for CheckImage
Source§impl PartialEq for CheckImage
impl PartialEq for CheckImage
impl StructuralPartialEq for CheckImage
Auto Trait Implementations§
impl Forget for CheckImage
impl Freeze for CheckImage
impl Move for CheckImage
impl RefUnwindSafe for CheckImage
impl Send for CheckImagewhere
RawVecInner: Send,
impl Sync for CheckImagewhere
RawVecInner: Sync,
impl Unpin for CheckImage
impl UnsafeUnpin for CheckImagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CheckImagewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.