Crates.io | option_ord |
lib.rs | option_ord |
version | 0.1.1 |
source | src |
created_at | 2024-07-22 22:43:05.347615 |
updated_at | 2024-10-11 20:40:30.922203 |
description | configure ordering on 1+T with the 1 either smallest or largest, explicit vs derive default |
homepage | |
repository | https://github.com/Cobord/option_ord |
max_upload_size | |
id | 1312212 |
size | 6,138 |
proc macro so that
struct MyOption
becomes transparent, and gets the implementation of Ord where the None is bigger/smaller than all the Some(_)
and without generics as well
as in
#[transparent_option_ord(true)]
struct MyOption(Option