pub struct LangFile<'a> {
pub path: &'a str,
pub source: Option<&'a str>,
}Expand description
One file of the languages’ directory.
Fields§
§path: &'a strIts path under the languages’ directory (en/ui.ron).
source: Option<&'a str>Its text; None if it isn’t UTF-8.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LangFile<'a>
impl<'a> RefUnwindSafe for LangFile<'a>
impl<'a> Send for LangFile<'a>
impl<'a> Sync for LangFile<'a>
impl<'a> Unpin for LangFile<'a>
impl<'a> UnsafeUnpin for LangFile<'a>
impl<'a> UnwindSafe for LangFile<'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