diff --git a/util/src/option.rs b/util/src/option.rs index 6b743df..62c0099 100644 --- a/util/src/option.rs +++ b/util/src/option.rs @@ -1,4 +1,6 @@ +/// A helper trait for turning any type value into `Some(value)`. pub trait SomeExt: Sized { + /// Wraps the calling value in `Some()`. fn some(self) -> Option { Some(self) }