pub struct UnusedEffectLayer {
pub path: PathBuf,
pub name: String,
pub kind: EffectLayerKind,
pub line: u32,
pub col: u32,
pub dead_consumers: Vec<String>,
}Expand description
An Effect layer whose every reference sits inside other layers that
nothing in the project uses. The layer is reachable only through a dead
composition, so it never reaches a runtime. A layer with zero references
is not reported here: unused-export or unused-class-member owns it.
Fields§
§path: PathBufThe module that defines the layer.
name: StringFooLive, or FooService.layer for a static member.
kind: EffectLayerKindWhether the layer is a module-scope const or a class static member.
line: u321-based line number of the layer name.
col: u320-based byte column offset of the layer name.
dead_consumers: Vec<String>The unused layers that compose this layer, sorted by name.
Trait Implementations§
Source§impl Clone for UnusedEffectLayer
impl Clone for UnusedEffectLayer
Source§impl Debug for UnusedEffectLayer
impl Debug for UnusedEffectLayer
Source§impl<'de> Deserialize<'de> for UnusedEffectLayer
impl<'de> Deserialize<'de> for UnusedEffectLayer
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 UnusedEffectLayer
impl RefUnwindSafe for UnusedEffectLayer
impl Send for UnusedEffectLayer
impl Sync for UnusedEffectLayer
impl Unpin for UnusedEffectLayer
impl UnsafeUnpin for UnusedEffectLayer
impl UnwindSafe for UnusedEffectLayer
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