pub struct Loaded<'a, T> {
pub value: T,
pub header: &'a [u8],
}Expand description
What a successful load produced.
The header travels alongside the value because saving can be asked to preserve it verbatim, and a few games ship files whose magic is not the canonical one.
Fields§
§value: TThe parsed root struct.
header: &'a [u8]The file’s magic string, exactly as it appeared.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Loaded<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Loaded<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Loaded<'a, T>where
T: Send,
impl<'a, T> Sync for Loaded<'a, T>where
T: Sync,
impl<'a, T> Unpin for Loaded<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Loaded<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Loaded<'a, T>where
T: 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