Struct syn_solidity::StmtDoWhile
source · 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 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