Crates.io | is_option |
lib.rs | is_option |
version | 0.1.0 |
source | src |
created_at | 2023-01-05 13:07:47.303496 |
updated_at | 2023-01-05 13:07:47.303496 |
description | Tell you if your type is an `Option<_>`. |
homepage | |
repository | https://github.com/irevoire/is_option |
max_upload_size | |
id | 751515 |
size | 2,468 |
Option
?use is_option::is_option;
assert!(is_option!(Option<bool>));
assert!(is_option!(Option<String>));
assert!(is_option!(Option<&str>));
assert!(!is_option!(bool));
assert!(!is_option!(&str));
assert!(!is_option!(Vec<usize>));