Attribute Macro otter::prelude::extend::ext_sized

source · []
#[ext_sized]
Expand description

Like ext but always add Sized as a supertrait.

This is provided as a convenience for generating extension traits that require Self: Sized such as:

use extend::ext_sized;

#[ext_sized]
impl i32 {
    fn requires_sized(self) -> Option<Self> {
        Some(self)
    }
}