use extension_fn::extension_fn; #[extension_fn( Vec)] fn sorted(mut self) -> Self { self.sort(); self }