I’m writing a wrapper type for integer/float types to make them work like Option, at the cost of having one None-value.
Now I am unsure whether to
impl Deref for my type where
target=Option<T> – on one hand, it should make the conversion automatic and make for nicer looking code, on the other hand it would probably slow down compilation (as the type inference has to insert the derefs) and make for some puzzler, as it is no longer clear, where the coercion takes place.
What do you think? Should I
impl Deref or just