pub struct Entry {
pub name: [u8; 21],
pub name_len: u8,
pub blocks: u8,
}Expand description
One file as reported by Card::list.
The fields stay public because games build [Entry; N] listing buffers
with a struct literal (voxide’s save menu, the hello-memcard example).
Nothing relies on them for memory safety: Entry::name checks both the
length and the UTF-8.
Fields§
§name: [u8; 21]File name bytes (ASCII), name_len valid.
name_len: u8Valid length of name.
blocks: u8Number of 8 KiB blocks the file occupies.
Implementations§
Trait Implementations§
impl Copy for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)