Struct ruboy_lib::Ruboy

source ·
pub struct Ruboy<A, R, V>{ /* private fields */ }

Implementations§

source§

impl<A: GBAllocator, R: RomReader, V: GBGraphicsDrawer> Ruboy<A, R, V>

source

pub fn new(rom: R, output: V) -> Result<Self, RuboyStartErr<R>>

source

pub fn start(self) -> Result<(), RuboyErr<V>>

Auto Trait Implementations§

§

impl<A, R, V> Freeze for Ruboy<A, R, V>
where V: Freeze, <A as GBAllocator>::Mem<u8, 8192>: Freeze, <A as GBAllocator>::Mem<u8, 160>: Freeze, <A as GBAllocator>::Mem<u8, 127>: Freeze, <A as GBAllocator>::Mem<u8, 32768>: Freeze,

§

impl<A, R, V> RefUnwindSafe for Ruboy<A, R, V>
where V: RefUnwindSafe, <A as GBAllocator>::Mem<u8, 8192>: RefUnwindSafe, <A as GBAllocator>::Mem<u8, 160>: RefUnwindSafe, <A as GBAllocator>::Mem<u8, 127>: RefUnwindSafe, <A as GBAllocator>::Mem<u8, 32768>: RefUnwindSafe, R: RefUnwindSafe,

§

impl<A, R, V> Send for Ruboy<A, R, V>
where V: Send, <A as GBAllocator>::Mem<u8, 8192>: Send, <A as GBAllocator>::Mem<u8, 160>: Send, <A as GBAllocator>::Mem<u8, 127>: Send, <A as GBAllocator>::Mem<u8, 32768>: Send, R: Send,

§

impl<A, R, V> Sync for Ruboy<A, R, V>
where V: Sync, <A as GBAllocator>::Mem<u8, 8192>: Sync, <A as GBAllocator>::Mem<u8, 160>: Sync, <A as GBAllocator>::Mem<u8, 127>: Sync, <A as GBAllocator>::Mem<u8, 32768>: Sync, R: Sync,

§

impl<A, R, V> Unpin for Ruboy<A, R, V>
where V: Unpin, <A as GBAllocator>::Mem<u8, 8192>: Unpin, <A as GBAllocator>::Mem<u8, 160>: Unpin, <A as GBAllocator>::Mem<u8, 127>: Unpin, <A as GBAllocator>::Mem<u8, 32768>: Unpin, R: Unpin,

§

impl<A, R, V> UnwindSafe for Ruboy<A, R, V>
where V: UnwindSafe, <A as GBAllocator>::Mem<u8, 8192>: UnwindSafe, <A as GBAllocator>::Mem<u8, 160>: UnwindSafe, <A as GBAllocator>::Mem<u8, 127>: UnwindSafe, <A as GBAllocator>::Mem<u8, 32768>: UnwindSafe, R: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.