pub struct PackageLine {
pub package: String,
pub module: String,
pub function: Option<String>,
pub line: u32,
pub column: Option<u32>,
}Expand description
A position inside a package: the line of the package’s code that made a call the program reached through it.
Fields§
§package: String§module: StringThe package’s module the line is in: its path under the package’s source
directory, without the extension, such as lib for src/lib.ts.
function: Option<String>The function the line is in, when its name is known.
line: u32§column: Option<u32>Trait Implementations§
Source§impl Clone for PackageLine
impl Clone for PackageLine
Source§impl Debug for PackageLine
impl Debug for PackageLine
Source§impl<'de> Deserialize<'de> for PackageLine
impl<'de> Deserialize<'de> for PackageLine
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
impl Eq for PackageLine
Source§impl PartialEq for PackageLine
impl PartialEq for PackageLine
Source§impl Serialize for PackageLine
impl Serialize for PackageLine
impl StructuralPartialEq for PackageLine
Auto Trait Implementations§
impl Freeze for PackageLine
impl RefUnwindSafe for PackageLine
impl Send for PackageLine
impl Sync for PackageLine
impl Unpin for PackageLine
impl UnsafeUnpin for PackageLine
impl UnwindSafe for PackageLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.