pub struct ArgumentMatch<'a> { /* private fields */ }Expand description
Matching of ParameterList with ArgumentValueList into Tuple
Implementations§
Source§impl<'a> ArgumentMatch<'a>
impl<'a> ArgumentMatch<'a>
Sourcepub fn find_match(
arguments: &'a ArgumentValueList,
params: &'a ParameterValueList,
) -> EvalResult<Tuple>
pub fn find_match( arguments: &'a ArgumentValueList, params: &'a ParameterValueList, ) -> EvalResult<Tuple>
Match a ParameterList with an ArgumentValueList into a tuple.
Returns `Ok(Tuple)`` if matches or Err() if not
Sourcepub fn find_multi_match(
arguments: &'a ArgumentValueList,
params: &'a ParameterValueList,
) -> EvalResult<Vec<Tuple>>
pub fn find_multi_match( arguments: &'a ArgumentValueList, params: &'a ParameterValueList, ) -> EvalResult<Vec<Tuple>>
Match a ParameterList with an ArgumentValueList into an vector of tuples.
Returns `Ok(Tuple)`` if matches or Err() if not
Trait Implementations§
Source§impl Debug for ArgumentMatch<'_>
impl Debug for ArgumentMatch<'_>
Source§impl<'a> Default for ArgumentMatch<'a>
impl<'a> Default for ArgumentMatch<'a>
Source§fn default() -> ArgumentMatch<'a>
fn default() -> ArgumentMatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ArgumentMatch<'a>
impl<'a> !RefUnwindSafe for ArgumentMatch<'a>
impl<'a> !Send for ArgumentMatch<'a>
impl<'a> !Sync for ArgumentMatch<'a>
impl<'a> Unpin for ArgumentMatch<'a>
impl<'a> !UnwindSafe for ArgumentMatch<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more