pub struct ControlPrompt {
pub prompt: Ref,
pub input: Ref,
pub result_shape: Ref,
}Expand description
Record describing a delimited control prompt to enter.
Fields§
§prompt: RefReference identifying the prompt boundary.
input: RefInput value supplied to the prompt body.
result_shape: RefShape the prompt result must satisfy.
Implementations§
Trait Implementations§
Source§impl Clone for ControlPrompt
impl Clone for ControlPrompt
Source§fn clone(&self) -> ControlPrompt
fn clone(&self) -> ControlPrompt
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 moreSource§impl Debug for ControlPrompt
impl Debug for ControlPrompt
impl Eq for ControlPrompt
Source§impl PartialEq for ControlPrompt
impl PartialEq for ControlPrompt
Source§fn eq(&self, other: &ControlPrompt) -> bool
fn eq(&self, other: &ControlPrompt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlPrompt
Auto Trait Implementations§
impl Freeze for ControlPrompt
impl RefUnwindSafe for ControlPrompt
impl Send for ControlPrompt
impl Sync for ControlPrompt
impl Unpin for ControlPrompt
impl UnsafeUnpin for ControlPrompt
impl UnwindSafe for ControlPrompt
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