pub enum Rom {
Memory(Option<PathBuf>, Cursor<Vec<u8>>),
File(PathBuf),
}Expand description
A ROM, including any information the core needs to know about the ROM.
Variants§
Memory(Option<PathBuf>, Cursor<Vec<u8>>)
A ROM that is stored in memory.
File(PathBuf)
A ROM that is stored in a file on the file system.
Trait Implementations§
impl Eq for Rom
impl StructuralPartialEq for Rom
Auto Trait Implementations§
impl Freeze for Rom
impl RefUnwindSafe for Rom
impl Send for Rom
impl Sync for Rom
impl Unpin for Rom
impl UnwindSafe for Rom
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,
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 more