pub struct InlineJsModule { /* private fields */ }Expand description
Inline JS module info
Implementations§
Source§impl InlineJsModule
impl InlineJsModule
pub const fn new(content: &'static str) -> InlineJsModule
Sourcepub fn hash(&self) -> String
pub fn hash(&self) -> String
Calculate the hash of the module content for use as a filename This uses a simple FNV-1a hash that can also be computed at compile time
Sourcepub const fn const_hash(&self) -> u64
pub const fn const_hash(&self) -> u64
Const-compatible hash function (FNV-1a)
Trait Implementations§
Source§impl Clone for InlineJsModule
impl Clone for InlineJsModule
Source§fn clone(&self) -> InlineJsModule
fn clone(&self) -> InlineJsModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Collect for InlineJsModule
impl Copy for InlineJsModule
Auto Trait Implementations§
impl Freeze for InlineJsModule
impl RefUnwindSafe for InlineJsModule
impl Send for InlineJsModule
impl Sync for InlineJsModule
impl Unpin for InlineJsModule
impl UnwindSafe for InlineJsModule
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