pub struct EmbeddedAssets { /* private fields */ }
Expand description
[Assets
] implementation that only contains compile-time compressed and embedded assets.
Implementations§
Source§impl EmbeddedAssets
impl EmbeddedAssets
Sourcepub const fn new(
map: Map<&'static str, &'static [u8]>,
global_hashes: &'static [CspHash<'static>],
html_hashes: Map<&'static str, &'static [CspHash<'static>]>,
) -> Self
pub const fn new( map: Map<&'static str, &'static [u8]>, global_hashes: &'static [CspHash<'static>], html_hashes: Map<&'static str, &'static [CspHash<'static>]>, ) -> Self
Creates a new instance from the given asset map and script hash list.
Sourcepub fn iter(&self) -> Box<AssetsIter<'_>>
pub fn iter(&self) -> Box<AssetsIter<'_>>
Iterate on the assets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedAssets
impl RefUnwindSafe for EmbeddedAssets
impl Send for EmbeddedAssets
impl Sync for EmbeddedAssets
impl Unpin for EmbeddedAssets
impl UnwindSafe for EmbeddedAssets
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