pub struct DoWhileStmt {
pub leading_comments: Vec<Comment>,
pub do_span: Span,
pub body: Box<Stmt>,
pub while_span: Span,
pub paren_span: (Span, Span),
pub cond: Expr,
pub semi_span: Span,
}Expand description
A do-while statement.
Fields§
§leading_comments: Vec<Comment>§do_span: Span§body: Box<Stmt>§while_span: Span§paren_span: (Span, Span)§cond: Expr§semi_span: SpanImplementations§
Trait Implementations§
Source§impl Clone for DoWhileStmt
impl Clone for DoWhileStmt
Source§fn clone(&self) -> DoWhileStmt
fn clone(&self) -> DoWhileStmt
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 DoWhileStmt
impl Debug for DoWhileStmt
impl Eq for DoWhileStmt
Source§impl Hash for DoWhileStmt
impl Hash for DoWhileStmt
Source§impl PartialEq for DoWhileStmt
impl PartialEq for DoWhileStmt
Source§fn eq(&self, other: &DoWhileStmt) -> bool
fn eq(&self, other: &DoWhileStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DoWhileStmt
Auto Trait Implementations§
impl Freeze for DoWhileStmt
impl RefUnwindSafe for DoWhileStmt
impl Send for DoWhileStmt
impl Sync for DoWhileStmt
impl Unpin for DoWhileStmt
impl UnsafeUnpin for DoWhileStmt
impl UnwindSafe for DoWhileStmt
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