Struct mila::TextArchive [−][src]
Implementations
impl TextArchive
[src]
pub fn new() -> Self
[src]
pub fn get_entries(&self) -> &LinkedHashMap<String, String>
[src]
pub fn from_bytes(raw_archive: &[u8]) -> Result<Self, TextArchiveError>
[src]
pub fn from_archive(archive: &BinArchive) -> Result<Self, TextArchiveError>
[src]
pub fn serialize(&self) -> Result<Vec<u8>, TextArchiveError>
[src]
pub fn get_title(&self) -> &str
[src]
pub fn set_title(&mut self, new_title: String)
[src]
pub fn has_message(&self, key: &str) -> bool
[src]
pub fn delete_message(&mut self, key: &str)
[src]
pub fn get_message(&self, key: &str) -> Option<String>
[src]
pub fn set_message(&mut self, key: &str, message: &str)
[src]
pub fn is_dirty(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextArchive
[src]
impl Send for TextArchive
[src]
impl Sync for TextArchive
[src]
impl Unpin for TextArchive
[src]
impl UnwindSafe for TextArchive
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,