pub struct Explanation {
pub path: RelPath,
pub position: Position,
pub symbol: Option<Symbol>,
pub declared: Option<Position>,
pub line: Option<String>,
pub module: Option<Address>,
pub address: Option<Address>,
pub reach: Option<Reach>,
pub via: Vec<Address>,
pub import: Option<Dep>,
pub importers: Vec<RelPath>,
}Expand description
explain <path>:<line>:<column>: what is at a position.
Fields§
§path: RelPath§position: Position§symbol: Option<Symbol>The innermost declaration whose extent contains the position.
declared: Option<Position>Where that declaration’s name starts, and the source line holding it.
line: Option<String>§module: Option<Address>The file’s module address, and the declaration’s when a path reaches it.
address: Option<Address>§reach: Option<Reach>§via: Vec<Address>Every other address a re-export chain offers the declaration at.
import: Option<Dep>The import statement at the position, when it is inside one: what it spells and where that really comes from.
importers: Vec<RelPath>Files whose imports resolve to the declaration, to any address a re-export offers it at, or to its module when the declaration itself is not addressable.
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§impl Debug for Explanation
impl Debug for Explanation
Source§impl<'de> Deserialize<'de> for Explanation
impl<'de> Deserialize<'de> for Explanation
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 Explanation
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
Source§impl Serialize for Explanation
impl Serialize for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more