Struct imperator_save::file::ImperatorParsedFile
source · [−]pub struct ImperatorParsedFile<'a> { /* private fields */ }
Expand description
An Imperator file that has been parsed
Implementations
sourceimpl<'a> ImperatorParsedFile<'a>
impl<'a> ImperatorParsedFile<'a>
sourcepub fn as_text(&self) -> Option<&ImperatorText<'_>>
pub fn as_text(&self) -> Option<&ImperatorText<'_>>
Returns the file as text
sourcepub fn as_binary(&self) -> Option<&ImperatorBinary<'_>>
pub fn as_binary(&self) -> Option<&ImperatorBinary<'_>>
Returns the file as binary
sourcepub fn kind(&self) -> &ImperatorParsedFileKind<'_>
pub fn kind(&self) -> &ImperatorParsedFileKind<'_>
Returns the kind of file (binary or text)
sourcepub fn deserializer(&self) -> ImperatorDeserializer<'_, '_>
pub fn deserializer(&self) -> ImperatorDeserializer<'_, '_>
Prepares the file for deserialization into a custom structure
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImperatorParsedFile<'a>
impl<'a> Send for ImperatorParsedFile<'a>
impl<'a> Sync for ImperatorParsedFile<'a>
impl<'a> Unpin for ImperatorParsedFile<'a>
impl<'a> UnwindSafe for ImperatorParsedFile<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more