diff --git a/src/traits.rs b/src/traits.rs index 4ef926e..a7bdfd7 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -132,6 +132,20 @@ pub trait IsCallable { last_argument: argument::Cloned(last_argument), } } + + fn provide_first_argument_cloned( + self, + first_argument: T, + ) -> super::argument::FirstArgumentProvided> + where + Self: Sized + CallableWithFixedArguments, + Self::FixedArgumentTypes: argument::ArgumentTypes>, + { + super::argument::FirstArgumentProvided { + f: self, + first_argument: argument::Cloned(first_argument), + } + } } /// Anything implementing CallableOne has the following traits: