pub struct println;
Expand description
Unstable variadic println function
ⓘ
builtin! fn println () -> 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 println
impl Callable for println
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 println
impl RefUnwindSafe for println
impl Send for println
impl Sync for println
impl Unpin for println
impl UnwindSafe for println
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