Add TraitDef::trait_decl method
This commit is contained in:
parent
0e69a8ad20
commit
6e4d7bd90e
@ -105,6 +105,12 @@ pub struct AliasDef(pub(crate) DefId);
|
|||||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||||
pub struct TraitDef(pub(crate) DefId);
|
pub struct TraitDef(pub(crate) DefId);
|
||||||
|
|
||||||
|
impl TraitDef {
|
||||||
|
pub fn trait_decl(&self) -> TraitDecl {
|
||||||
|
with(|cx| cx.trait_decl(self))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user