struct List {
data: Option<DataId>,
len: usize,
}Expand description
An array emitted as data, ready to be pointed at by a nifty_rt::Slice.
Fields§
§data: Option<DataId>§len: usizeImplementations§
Source§impl List
impl List
const EMPTY: Self
Sourcefn emit<M: Module>(
emitter: &mut Emitter<M>,
len: usize,
size: usize,
write: impl FnMut(&mut Blob, usize, usize) -> Result<(), CodegenError>,
) -> Result<Self, CodegenError>
fn emit<M: Module>( emitter: &mut Emitter<M>, len: usize, size: usize, write: impl FnMut(&mut Blob, usize, usize) -> Result<(), CodegenError>, ) -> Result<Self, CodegenError>
Emits len items of size bytes each, which write lays out in a blob at the
offset it’s given.
fn put(self, blob: &mut Blob, offset: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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