pub struct Entry<S, T>{
pub metadata: EntryMetadata<S>,
pub contents: T,
}
Expand description
An entry in the ROMFS, including its contents.
Fields§
§metadata: EntryMetadata<S>
Metadata for this entry.
contents: T
The file data for this entry.
Call contents.as_ref()
to get the contents as a byte slice
(&[u8]
).
Trait Implementations§
impl<S, T> Eq for Entry<S, T>
impl<S, T> StructuralPartialEq for Entry<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for Entry<S, T>
impl<S, T> RefUnwindSafe for Entry<S, T>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, T> Send for Entry<S, T>
impl<S, T> Sync for Entry<S, T>
impl<S, T> Unpin for Entry<S, T>
impl<S, T> UnwindSafe for Entry<S, T>where
T: UnwindSafe,
S: 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