pub struct Selection {
pub sprites: Vec<u8>,
pub sfx: Vec<u8>,
pub music: Vec<u8>,
}Expand description
Which source assets to append into a destination cart. Indices are the source PICO-8 cart’s own indices (sprite 0..256, SFX/music 0..64).
Fields§
§sprites: Vec<u8>§sfx: Vec<u8>§music: Vec<u8>Implementations§
Source§impl Selection
impl Selection
Sourcepub fn parse(
sprites: Option<&str>,
sfx: Option<&str>,
music: Option<&str>,
) -> Result<Self>
pub fn parse( sprites: Option<&str>, sfx: Option<&str>, music: Option<&str>, ) -> Result<Self>
Build a selection from the range strings as typed on the command line,
e.g. Selection::parse(Some("0-15,32"), Some("0-3"), None). At least
one kind must be given, or this is an error. Each string is parsed with
inclusive ranges and validated against its kind’s maximum.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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