pub struct ProcessorBuilder { /* private fields */ }Implementations§
Source§impl ProcessorBuilder
impl ProcessorBuilder
pub fn new() -> Self
Sourcepub fn program(self, program: &[u8]) -> Result<Self, ProcessorBuilderError>
pub fn program(self, program: &[u8]) -> Result<Self, ProcessorBuilderError>
Copies the program into the processors memory in such that the first byte is at address 0x200.
Sourcepub fn font(self, font: Font) -> Self
pub fn font(self, font: Font) -> Self
Set the font the processor should use.
The font will be stored in processor memory starting at address 0x0.
See also [Font].
Sourcepub fn partial_offscreen_drawing(
self,
partial_offscreen_drawing: PartialOffscreenDrawing,
) -> Self
pub fn partial_offscreen_drawing( self, partial_offscreen_drawing: PartialOffscreenDrawing, ) -> Self
Set the partial offscreen drawing behavior for sprites.
See also PartialOffscreenDrawing.
Sourcepub fn skipping(self, skipping: Skipping) -> Self
pub fn skipping(self, skipping: Skipping) -> Self
Set the processor’s skipping behavior of unsupported instructions.
Unsupported instructions that are not skipped cause an error to be returned.
See also Skipping.
pub fn build(self) -> Processor
Auto Trait Implementations§
impl Freeze for ProcessorBuilder
impl RefUnwindSafe for ProcessorBuilder
impl Send for ProcessorBuilder
impl Sync for ProcessorBuilder
impl Unpin for ProcessorBuilder
impl UnwindSafe for ProcessorBuilder
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