pub struct File<'a> { /* private fields */ }
Expand description
A file loaded from ROM or data dir into the memory.
Returned by [rom::load
] and [data::load
] which requires a pre-allocated buffer
of the right size. If the file size is deterimed dynamically,
you might want to use [rom::load_buf
] and [data::load_buf
] instead
(which will take care of the dynamic allocation).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for File<'a>
impl<'a> RefUnwindSafe for File<'a>
impl<'a> Send for File<'a>
impl<'a> Sync for File<'a>
impl<'a> Unpin for File<'a>
impl<'a> UnwindSafe for File<'a>
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