pub struct MockGraphic {
pub place: Rect,
pub size: (u32, u32),
pub rgba: Vec<u8>,
}Expand description
A graphic a commit published (Surface::draw_graphic).
Fields§
§place: RectThe cells it covers.
size: (u32, u32)Its image’s size in pixels.
rgba: Vec<u8>Its RGBA8 pixels.
Trait Implementations§
Source§impl Clone for MockGraphic
impl Clone for MockGraphic
Source§impl Debug for MockGraphic
impl Debug for MockGraphic
impl Eq for MockGraphic
Source§impl PartialEq for MockGraphic
impl PartialEq for MockGraphic
impl StructuralPartialEq for MockGraphic
Auto Trait Implementations§
impl Freeze for MockGraphic
impl RefUnwindSafe for MockGraphic
impl Send for MockGraphic
impl Sync for MockGraphic
impl Unpin for MockGraphic
impl UnsafeUnpin for MockGraphic
impl UnwindSafe for MockGraphic
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