Skip to main content

rustidy_ast/expr/without_block/
continue_.rs

1//! Continue
2
3// Imports
4use {
5	crate::{lifetime::LifetimeOrLabel, token},
6	rustidy_format::{Format, Formattable, WhitespaceFormat},
7	rustidy_parse::Parse,
8	rustidy_print::Print,
9	rustidy_util::Whitespace,
10};
11
12/// `ContinueExpression`
13#[derive(PartialEq, Eq, Clone, Debug)]
14#[derive(serde::Serialize, serde::Deserialize)]
15#[derive(Parse, Formattable, Format, Print)]
16pub struct ContinueExpression {
17	pub continue_: token::Continue,
18	#[format(prefix_ws = Whitespace::SINGLE)]
19	pub label:     Option<LifetimeOrLabel>,
20}