pub enum ZeroItem<L> {
Label(L),
Space(u32),
Align(NonZeroU32),
}
Expand description
Placeholder for space in RAM that shoud be allocated at startup with initially-zeroed content.
Variants§
Label(L)
A label whose address can be dereferenced.
Space(u32)
Reserves the given amount of space, in bytes.
Align(NonZeroU32)
Generates padding such that the next item is aligned to a multiple of
the given NonZeroU32
, which will likely be a power of two but
arbitrary values are accepted. Glulx itself never requires any item in
main memory to be aligned, but you can use this if you are generating
code which assumes some alignment.
Implementations§
Trait Implementations§
impl<L: Copy> Copy for ZeroItem<L>
impl<L: Eq> Eq for ZeroItem<L>
impl<L> StructuralPartialEq for ZeroItem<L>
Auto Trait Implementations§
impl<L> Freeze for ZeroItem<L>where
L: Freeze,
impl<L> RefUnwindSafe for ZeroItem<L>where
L: RefUnwindSafe,
impl<L> Send for ZeroItem<L>where
L: Send,
impl<L> Sync for ZeroItem<L>where
L: Sync,
impl<L> Unpin for ZeroItem<L>where
L: Unpin,
impl<L> UnwindSafe for ZeroItem<L>where
L: 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