2024-07-19 09:50:47 -05:00
|
|
|
//@ set struct = "$.index[*][?(@.name=='Struct')].id"
|
2022-09-11 14:32:47 -05:00
|
|
|
pub struct Struct;
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set trait = "$.index[*][?(@.name=='Trait')].id"
|
2022-09-11 14:32:47 -05:00
|
|
|
pub trait Trait {}
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set impl = "$.index[*][?(@.docs=='impl')].id"
|
2022-09-11 14:32:47 -05:00
|
|
|
/// impl
|
|
|
|
impl Trait for Struct {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.name=='Struct')].inner.struct.impls[*]" $impl
|
|
|
|
//@ is "$.index[*][?(@.name=='Trait')].inner.trait.implementations[*]" $impl
|
|
|
|
//@ is "$.index[*][?(@.docs=='impl')].inner.impl.trait.id" $trait
|
|
|
|
//@ is "$.index[*][?(@.docs=='impl')].inner.impl.for.resolved_path.id" $struct
|