Struct StaticPacket
Source pub struct StaticPacket<const W: usize> { }
Expand description
One immutable linked-list node: W GP0 words, then the end of the list.
Built in a static, it is a chain that stays valid for the whole run, so
crate::Gpu::submit_static can kick it from safe code without waiting.
use psx_gpu::chain::StaticPacket;
static MODE_THEN_IRQ: StaticPacket<2> = StaticPacket::new([0xE100_0000, 0x1F00_0000]);
assert_eq!(MODE_THEN_IRQ.words(), &[0xE100_0000, 0x1F00_0000]);
A node carrying words that ends the list.
The node’s tag word, the address a chain links to.
Formats the value using the given formatter.
Read more
Address of the first node’s tag.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.