Struct cl_interpret::builtin::print
source · pub struct print;
Expand description
Unstable variadic print function
ⓘ
builtin! fn print () -> IResult<ConValue>
{
let mut out = stdout().lock();
for arg in args { write!(out, "{arg}").ok(); }
writeln!(out).ok();
Ok(ConValue::Empty)
}
Trait Implementations§
source§impl Callable for print
impl Callable for print
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 print
impl RefUnwindSafe for print
impl Send for print
impl Sync for print
impl Unpin for print
impl UnwindSafe for print
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