#[non_exhaustive]pub enum StopKind {
Command,
Plain,
Quote,
Choice,
}Expand description
The kind of stop point: a sugar (plain line, quote line, choice) or a command written with @. Text tables
(spec/host/05-texts.md) replace only the bodies of sugar.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Command
A stop command called with @ (its arguments are not replaced).
Plain
A plain line (argument 0 is the body).
Quote
A quote line (argument 1 is the body).
Choice
A choice (argument 0 is the list of option texts, argument 1 the list of stable IDs).
Implementations§
Trait Implementations§
impl Copy for StopKind
impl Eq for StopKind
impl StructuralPartialEq for StopKind
Auto Trait Implementations§
impl Forget for StopKind
impl Freeze for StopKind
impl Move for StopKind
impl RefUnwindSafe for StopKind
impl Send for StopKind
impl Sync for StopKind
impl Unpin for StopKind
impl UnsafeUnpin for StopKind
impl UnwindSafe for StopKind
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