Lines Matching refs:trait
87 /// A trait used for custom implementations of [`Unpin`].
89 /// This trait is used in conjunction with the `UnsafeUnpin` argument to
92 /// The Rust [`Unpin`] trait is safe to implement - by itself,
107 /// To help highlight this unsafety, the `UnsafeUnpin` trait is provided.
108 /// Implementing this trait is logically equivalent to implementing [`Unpin`] -
110 /// your `UnsafeUnpin` impl. However, this trait is `unsafe` - since your type
120 /// Since this trait is `unsafe`, impls of it will be detected by the
145 pub unsafe trait UnsafeUnpin {}
164 // An internal trait used for custom implementations of [`Drop`].
166 // **Do not call or implement this trait directly.**
168 // # Why this trait is private and `#[pinned_drop]` attribute is needed?
185 pub trait PinnedDrop {