pub struct EmbeddedAsset<'a> {
pub path: &'a str,
pub bytes: &'a [u8],
}Expand description
One file of the application’s public/, compiled into the binary.
Fields§
§path: &'a strThe path below public/, with / separators — js/main.js.
bytes: &'a [u8]Auto Trait Implementations§
impl<'a> Freeze for EmbeddedAsset<'a>
impl<'a> RefUnwindSafe for EmbeddedAsset<'a>
impl<'a> Send for EmbeddedAsset<'a>
impl<'a> Sync for EmbeddedAsset<'a>
impl<'a> Unpin for EmbeddedAsset<'a>
impl<'a> UnsafeUnpin for EmbeddedAsset<'a>
impl<'a> UnwindSafe for EmbeddedAsset<'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