pub enum BuiltinShape {
Fallible,
Infallible,
Range,
Prompt,
}Expand description
How a builtin call is emitted and dispatched.
Variants§
Fallible
Returns Result at runtime, so the emitted call threads ?/labeled-break
and the value-dispatcher arm forwards the Result as-is.
Infallible
Cannot fail: the emitted call is used directly, and the value-dispatcher
arm wraps it in Ok.
Range
range: one argument (0..n) or two (a..b), each a fallible range
call with the runtime’s two-argument shape.
Prompt
gib: no argument (read a line) or one (a prompt printed first), a fallible
call that maps to the runtime’s Option<&Value> prompt shape.
Trait Implementations§
Source§impl Clone for BuiltinShape
impl Clone for BuiltinShape
Source§fn clone(&self) -> BuiltinShape
fn clone(&self) -> BuiltinShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuiltinShape
Auto Trait Implementations§
impl Freeze for BuiltinShape
impl RefUnwindSafe for BuiltinShape
impl Send for BuiltinShape
impl Sync for BuiltinShape
impl Unpin for BuiltinShape
impl UnsafeUnpin for BuiltinShape
impl UnwindSafe for BuiltinShape
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