Struct deno_core::ExtensionFileSource
source · pub struct ExtensionFileSource {
pub specifier: &'static str,
pub code: ExtensionFileSourceCode,
pub source_map: Option<Vec<u8>>,
/* private fields */
}
Fields§
§specifier: &'static str
§code: ExtensionFileSourceCode
§source_map: Option<Vec<u8>>
Implementations§
source§impl ExtensionFileSource
impl ExtensionFileSource
pub const fn new(specifier: &'static str, code: &'static str) -> Self
pub const fn new_computed(specifier: &'static str, code: Arc<str>) -> Self
pub const fn loaded_during_snapshot( specifier: &'static str, path: &'static str ) -> Self
pub const fn loaded_from_memory_during_snapshot( specifier: &'static str, code: &'static str ) -> Self
pub fn load(&self) -> Result<ModuleCodeString, Error>
Trait Implementations§
source§impl Clone for ExtensionFileSource
impl Clone for ExtensionFileSource
source§fn clone(&self) -> ExtensionFileSource
fn clone(&self) -> ExtensionFileSource
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ExtensionFileSource
impl Send for ExtensionFileSource
impl Sync for ExtensionFileSource
impl Unpin for ExtensionFileSource
impl UnwindSafe for ExtensionFileSource
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