pub enum ArgsBindingError<C: 'static + Context> {
NotEnoughArgs(Option<Symbol>, Args<C>, Vec<Gc<Value<C>>>),
TooManyArgs(Option<Symbol>, Args<C>, Vec<Gc<Value<C>>>),
}
Expand description
An error binding arguments to an Args.
Variants§
NotEnoughArgs(Option<Symbol>, Args<C>, Vec<Gc<Value<C>>>)
Not enough arguments were passed to the function.
TooManyArgs(Option<Symbol>, Args<C>, Vec<Gc<Value<C>>>)
Too many enough arguments were passed to the function.
Trait Implementations§
Source§impl<C: Clone + 'static + Context> Clone for ArgsBindingError<C>
impl<C: Clone + 'static + Context> Clone for ArgsBindingError<C>
Source§fn clone(&self) -> ArgsBindingError<C>
fn clone(&self) -> ArgsBindingError<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<C: 'static + Context> StructuralPartialEq for ArgsBindingError<C>
Auto Trait Implementations§
impl<C> Freeze for ArgsBindingError<C>
impl<C> !RefUnwindSafe for ArgsBindingError<C>
impl<C> !Send for ArgsBindingError<C>
impl<C> !Sync for ArgsBindingError<C>
impl<C> Unpin for ArgsBindingError<C>
impl<C> !UnwindSafe for ArgsBindingError<C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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