pub struct ScriptOrigin {
pub name: String,
pub line_offset: i32,
pub column_offset: i32,
}
Expand description
The origin, within a file, of a JavaScript script.
Fields§
§name: String
The name of the file this script belongs to.
line_offset: i32
The line at which this script starts.
column_offset: i32
The column at which this script starts.
Trait Implementations§
Source§impl Clone for ScriptOrigin
impl Clone for ScriptOrigin
Source§fn clone(&self) -> ScriptOrigin
fn clone(&self) -> ScriptOrigin
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 moreSource§impl Debug for ScriptOrigin
impl Debug for ScriptOrigin
Source§impl Default for ScriptOrigin
impl Default for ScriptOrigin
Source§fn default() -> ScriptOrigin
fn default() -> ScriptOrigin
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScriptOrigin
impl RefUnwindSafe for ScriptOrigin
impl Send for ScriptOrigin
impl Sync for ScriptOrigin
impl Unpin for ScriptOrigin
impl UnwindSafe for ScriptOrigin
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