pub struct Chunk {
pub id: String,
pub code: BundleCode,
pub source_map: Option<Arc<str>>,
}Expand description
A chunk of a split bundle (nsh_bundler::Chunk): app code that
import() loads on demand.
Fields§
§id: StringIts id (Screen.js), as the bundle imports it.
code: BundleCodeThe code.
source_map: Option<Arc<str>>Source map (JSON), for stack traces.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Chunk
impl Freeze for Chunk
impl Move for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for Chunk
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