pub struct LoadFile<'a> {
pub stem: &'a str,
pub path: &'a str,
pub text: &'static str,
}Expand description
One file of a folder, as Bundle::load_each hands it to a parser.
Fields§
§stem: &'a strThe file’s name without its folder and extension (data/a.ron is a).
path: &'a strThe file’s human-facing name (Bundle::display_path), for errors.
text: &'static strThe file’s text.
Trait Implementations§
impl<'a> Copy for LoadFile<'a>
impl<'a> Eq for LoadFile<'a>
impl<'a> StructuralPartialEq for LoadFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for LoadFile<'a>
impl<'a> RefUnwindSafe for LoadFile<'a>
impl<'a> Send for LoadFile<'a>
impl<'a> Sync for LoadFile<'a>
impl<'a> Unpin for LoadFile<'a>
impl<'a> UnsafeUnpin for LoadFile<'a>
impl<'a> UnwindSafe for LoadFile<'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