We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17eef71 commit af4e830Copy full SHA for af4e830
text/0000-knowntypeid.md
@@ -64,6 +64,7 @@ impl CanDoThing for DoesThing {
64
65
impl dyn CanDoThing + 'static {
66
pub fn is<T: CanDoThing + 'static>(&self) -> bool {
67
+ // `TypeId::of::<Self>()` would be `dyn CanDoThing`, not the "actual" type of Self
68
TypeId::of::<T>() == self.type_id()
69
}
70
0 commit comments