pub enum Pasted {
Sprites {
rect: PixelRect,
flags: Option<Vec<u8>>,
},
Sfx(SfxClip),
Map {
w: usize,
h: usize,
tiles: Vec<u8>,
},
}Expand description
One decoded clipboard blob, by kind.
Variants§
Sprites
A pixel block; flags is Some only for native sprite copies (one byte
per covered 8x8 sprite), None for PICO-8 [gfx].
Sfx(SfxClip)
Map
A map tile region. Native only — PICO-8 has no map clipboard format.
Auto Trait Implementations§
impl Freeze for Pasted
impl RefUnwindSafe for Pasted
impl Send for Pasted
impl Sync for Pasted
impl Unpin for Pasted
impl UnsafeUnpin for Pasted
impl UnwindSafe for Pasted
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