Struct cl_interpret::builtin::range_inc
source · pub struct range_inc;
Expand description
Inclusive Range a..=b
ⓘ
builtin! fn range_inc (lhs, rhs) -> IResult<ConValue>
{
let (&ConValue::Int(lhs), &ConValue::Int(rhs)) =
(lhs, rhs) else { Err(Error::TypeError)? };
Ok(ConValue::RangeInc(lhs, rhs))
}
Trait Implementations§
source§impl Callable for range_inc
impl Callable for range_inc
source§fn call(&self, env: &mut Environment, args: &[ConValue]) -> IResult<ConValue>
fn call(&self, env: &mut Environment, args: &[ConValue]) -> IResult<ConValue>
Calls this Callable in the provided Environment, with ConValue args
The Callable is responsible for checking the argument count and validating types
The Callable is responsible for checking the argument count and validating types
Auto Trait Implementations§
impl Freeze for range_inc
impl RefUnwindSafe for range_inc
impl Send for range_inc
impl Sync for range_inc
impl Unpin for range_inc
impl UnwindSafe for range_inc
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