Struct v8::script_compiler::Source
source · #[repr(C)]pub struct Source { /* private fields */ }
Expand description
Source code which can then be compiled to a UnboundScript or Script.
Implementations§
source§impl Source
impl Source
pub fn new( source_string: Local<'_, String>, origin: Option<&ScriptOrigin<'_>> ) -> Self
pub fn new_with_cached_data( source_string: Local<'_, String>, origin: Option<&ScriptOrigin<'_>>, cached_data: UniqueRef<CachedData<'_>> ) -> Self
pub fn get_cached_data(&self) -> Option<&CachedData<'_>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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