pub struct ImperatorParsedFile<'a> { /* private fields */ }Expand description
An Imperator file that has been parsed
Implementations§
Source§impl<'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> Freeze for ImperatorParsedFile<'a>
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§
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