4 ms·
But a smooth object can't be velcroed, nor can wood hold up a magnet. Isn't it that `Unpin` means the object is always ready to be pinned? (I read the article
by 01HNNWZ0MV43FF 2y ago
But a smooth object can't be velcroed, nor can wood hold up a magnet.
Isn't it that `Unpin` means the object is always ready to be pinned? (I read the article last night and already forgot whether pinning requires a fixup step)
So a `T: Pin + !Unpin` is like a sheet of paper that can only be fixed by stapling it, but a `T: Pin + Unpin` is like a painting with a hook which can be mounted on a nail and unmounted without damaging the hook
- iknowstuff 2y agoI think two things fuck with our brains here: - the double negative of „!Unpin” - Rust trait names are not adjectives Pin + Detach(-able) would be a less confusing name. That being said, you can velcro smooth objects all you want, but you'll still separate (Move) them easily :) or put a magnet to glass/brass objects. PS mind you that Pin is not a trait, only Unpin is, so Pin<T: Unpin> or Pin<T: !Unpin> is a more accurate way or writing what you described :)