We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_assoc_ty()
1 parent 1085dc2 commit dace2eeCopy full SHA for dace2ee
src/librustdoc/clean/types.rs
@@ -1498,6 +1498,7 @@ impl Type {
1498
}
1499
1500
1501
+ /// Checks if this is a `T::Name` path for an associated type.
1502
crate fn is_assoc_ty(&self) -> bool {
1503
match self {
1504
ResolvedPath { path, .. } => path.is_assoc_ty(),
@@ -1990,6 +1991,7 @@ impl Path {
1990
1991
+ &self.segments.iter().map(|s| s.name.to_string()).collect::<Vec<_>>().join("::")
1992
1993
1994
1995
1996
match self.res {
1997
Res::SelfTy(..) if self.segments.len() != 1 => true,
0 commit comments