pub struct RequireJson {
pub module: String,
pub path: Option<String>,
pub line: usize,
pub col: usize,
}Expand description
One literal require and where the checker resolved it. Kept because the project-level
cycle lint runs over every file’s requires, replayed ones included — a cycle that closes
through a module nobody edited is still a cycle.
Fields§
§module: StringThe name as the source spells it.
path: Option<String>What it resolved to, None when the checker found nothing — a host module, or a
require that will fail. Stored either way: the cycle lint reads the resolved ones,
and a name that starts resolving is a change this entry has to notice.
line: usizeWhere the require is, so a finding about it points at the call rather than the
file.
col: usizeColumn of the same.
Trait Implementations§
Source§impl Clone for RequireJson
impl Clone for RequireJson
Source§fn clone(&self) -> RequireJson
fn clone(&self) -> RequireJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequireJson
impl Debug for RequireJson
Source§impl<'de> Deserialize<'de> for RequireJson
impl<'de> Deserialize<'de> for RequireJson
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 RequireJson
impl RefUnwindSafe for RequireJson
impl Send for RequireJson
impl Sync for RequireJson
impl Unpin for RequireJson
impl UnsafeUnpin for RequireJson
impl UnwindSafe for RequireJson
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