pub struct StmtDoWhile {
pub do_token: Do,
pub body: Box<Stmt>,
pub while_token: While,
pub paren_token: Paren,
pub cond: Expr,
pub semi_token: Semi,
}
Expand description
A do-while statement: do { ... } while (condition);
.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.doWhileStatement
Fields§
§do_token: Do
§body: Box<Stmt>
§while_token: While
§paren_token: Paren
§cond: Expr
§semi_token: Semi
Trait Implementations§
Source§impl Clone for StmtDoWhile
impl Clone for StmtDoWhile
Source§fn clone(&self) -> StmtDoWhile
fn clone(&self) -> StmtDoWhile
Returns a copy of the value. Read more
1.0.0 · 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 StmtDoWhile
impl Debug for StmtDoWhile
Source§impl Parse for StmtDoWhile
impl Parse for StmtDoWhile
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for StmtDoWhile
impl Spanned for StmtDoWhile
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.Auto Trait Implementations§
impl Freeze for StmtDoWhile
impl RefUnwindSafe for StmtDoWhile
impl !Send for StmtDoWhile
impl !Sync for StmtDoWhile
impl Unpin for StmtDoWhile
impl UnwindSafe for StmtDoWhile
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