Struct cl_interpret::builtin::deref
source · pub struct deref;
Expand description
ⓘ
builtin! fn deref (tail) -> IResult<ConValue>
{
Ok(match tail {
ConValue::Ref(v) => Rc::as_ref(v).clone(),
_ => tail.clone(),
})
}
Trait Implementations§
source§impl Callable for deref
impl Callable for deref
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 deref
impl RefUnwindSafe for deref
impl Send for deref
impl Sync for deref
impl Unpin for deref
impl UnwindSafe for deref
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