Lines Matching defs:for
1 //! A simple example implementing the main traits for a type.
23 /// Implementing `AsFd`, `IntoFd`, and `FromFd` for a type that wraps an
29 /// implements them. But for new code, they can be omitted. Users that really
39 impl AsFd for Thing {
48 impl IntoFd for Thing {
56 impl From<Thing> for OwnedFd {
65 impl FromFd for Thing {
73 impl From<OwnedFd> for Thing {
81 impl AsHandle for Thing {
90 impl IntoHandle for Thing {
98 impl From<Thing> for OwnedHandle {
107 impl FromHandle for Thing {
115 impl From<OwnedHandle> for Thing {
144 // Implementing the above traits makes the blanket impls for the portable