pub struct ExtensionFileSource {
pub specifier: &'static str,
pub code: ExtensionFileSourceCode,
/* private fields */
}
Fields§
§specifier: &'static str
§code: ExtensionFileSourceCode
Implementations§
Source§impl ExtensionFileSource
impl ExtensionFileSource
pub const fn new(specifier: &'static str, code: FastStaticString) -> 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: FastStaticString, ) -> 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 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 moreAuto Trait Implementations§
impl Freeze for ExtensionFileSource
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