pub struct Format {
pub language: String,
pub strings: Vec<StringResource>,
pub plurals: Vec<PluralsResource>,
}Fields§
§language: String§strings: Vec<StringResource>§plurals: Vec<PluralsResource>Trait Implementations§
Source§impl Parser for Format
impl Parser for Format
Source§fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
Write to any writer (file, memory, etc.).
Source§fn read_from<P: AsRef<Path>>(path: P) -> Result<Self, Error>where
Self: Sized,
fn read_from<P: AsRef<Path>>(path: P) -> Result<Self, Error>where
Self: Sized,
Parse from file path.
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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