#[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 Freeze for Source
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