pub struct Location { /* private fields */ }Available on crate features
Debugger and Runtime only.Expand description
Location in the source code.
Implementations§
Source§impl Location
impl Location
pub fn new( script_id: ScriptId, line_number: u32, column_number: Option<u32>, ) -> Self
Sourcepub fn script_id(&self) -> &ScriptId
pub fn script_id(&self) -> &ScriptId
Script identifier as reported in the Debugger.scriptParsed.
Sourcepub fn line_number(&self) -> u32
pub fn line_number(&self) -> u32
Line number in the script (0-based).
Sourcepub fn column_number(&self) -> Option<&u32>
pub fn column_number(&self) -> Option<&u32>
Column number in the script (0-based).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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