#[repr(align(16))]pub struct Source<T>(pub T);Available on crate feature
cgb only.Expand description
Storage the copier can read, aligned as it needs.
The hardware ignores the low four bits of both addresses, so an unaligned
source would be read from the wrong place rather than refused. copy and
stream check for it instead, and this is how the check is passed: a
[Tile; N] is byte-aligned and lands wherever the linker puts it.
ⓘ
static TILES: hdma::Source<[Tile; 64]> = hdma::Source([..]);Tuple Fields§
§0: TAuto Trait Implementations§
impl<T> BankSafe for Source<T>where
T: BankSafe,
impl<T> Freeze for Source<T>where
T: Freeze,
impl<T> RefUnwindSafe for Source<T>where
T: RefUnwindSafe,
impl<T> Send for Source<T>where
T: Send,
impl<T> Sync for Source<T>where
T: Sync,
impl<T> Unpin for Source<T>where
T: Unpin,
impl<T> UnsafeUnpin for Source<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Source<T>where
T: UnwindSafe,
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