pub struct PackageCycleEdge {
pub from_package: String,
pub to_package: String,
pub path: PathBuf,
pub target_path: PathBuf,
pub line: u32,
pub col: u32,
pub type_only: bool,
}Expand description
One package hop in a PackageCycle: from_package imports
to_package, and path holds one example import for that hop.
The example import is the first runtime import by (path, line). When
every import on the hop is type-only, it is the first type-only import.
Fields§
§from_package: StringLabel of the importing workspace package, as in
PackageCycle::packages.
to_package: StringLabel of the imported workspace package, as in
PackageCycle::packages.
path: PathBufFile in from_package that holds the example import.
target_path: PathBufFile in to_package that the example import resolves to.
line: u321-based line number of the example import.
col: u320-based byte column offset of the example import.
type_only: boolTrue when every import from from_package to to_package is
type-only. A type-only hop has no runtime effect, but it can still
force a build order (for example with declaration builds).
Trait Implementations§
Source§impl Clone for PackageCycleEdge
impl Clone for PackageCycleEdge
Source§fn clone(&self) -> PackageCycleEdge
fn clone(&self) -> PackageCycleEdge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackageCycleEdge
impl Debug for PackageCycleEdge
Source§impl<'de> Deserialize<'de> for PackageCycleEdge
impl<'de> Deserialize<'de> for PackageCycleEdge
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackageCycleEdge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackageCycleEdge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PackageCycleEdge
impl JsonSchema for PackageCycleEdge
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for PackageCycleEdge
impl Serialize for PackageCycleEdge
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for PackageCycleEdge
impl RefUnwindSafe for PackageCycleEdge
impl Send for PackageCycleEdge
impl Sync for PackageCycleEdge
impl Unpin for PackageCycleEdge
impl UnsafeUnpin for PackageCycleEdge
impl UnwindSafe for PackageCycleEdge
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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