Add sugar for &pin (const|mut) types

This commit is contained in:
Eric Holk
2024-09-20 12:09:18 -07:00
parent 7caad69253
commit ae698f8199
23 changed files with 284 additions and 63 deletions

View File

@@ -79,3 +79,10 @@ impl Mutability {
matches!(self, Self::Not)
}
}
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Copy)]
#[cfg_attr(feature = "nightly", derive(Encodable, Decodable, HashStable_NoContext))]
pub enum Pinnedness {
Not,
Pinned,
}