Struct imperator_save::file::ImperatorText
source · [−]pub struct ImperatorText<'a> { /* private fields */ }
Expand description
A parsed Imperator text document
Implementations
sourceimpl<'a> ImperatorText<'a>
impl<'a> ImperatorText<'a>
pub fn from_slice(data: &'a [u8]) -> Result<Self, ImperatorError>
pub fn reader(&self) -> ObjectReader<'_, '_, Utf8Encoding>
pub fn deserialize<T>(&self) -> Result<T, ImperatorError> where
T: Deserialize<'a>,
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImperatorText<'a>
impl<'a> Send for ImperatorText<'a>
impl<'a> Sync for ImperatorText<'a>
impl<'a> Unpin for ImperatorText<'a>
impl<'a> UnwindSafe for ImperatorText<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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