pub enum Builtin {
Len,
First,
Last,
Rest,
Push,
Puts,
}
Expand description
Built-in function provided by Monkey.
Variants§
Len
Return the length of an iterable Monkey object.
First
Return the first element of a given array.
Last
Return the last element of a given array.
Rest
Return a new array containing all the elements of the array passed as argument, except for the first one
Push
Allocates a new array with the same elements as the array passed as argument with the addition of the new, pushed element.
Puts
Prints the given arguments to STDOUT
Implementations§
Trait Implementations§
impl Eq for Builtin
impl StructuralPartialEq for Builtin
Auto Trait Implementations§
impl Freeze for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnwindSafe for Builtin
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