Struct crustal::DoWhileLoop
source · pub struct DoWhileLoop { /* private fields */ }
Implementations§
source§impl DoWhileLoop
impl DoWhileLoop
sourcepub fn with_guard(cond: Expr) -> Self
pub fn with_guard(cond: Expr) -> Self
creates a new while loop taking ownership of the supplied conditional
sourcepub fn with_guard_and_body(cond: Expr, body: Block) -> Self
pub fn with_guard_and_body(cond: Expr, body: Block) -> Self
creates a new while loop with the supplied conditional and body
Trait Implementations§
source§impl Clone for DoWhileLoop
impl Clone for DoWhileLoop
source§fn clone(&self) -> DoWhileLoop
fn clone(&self) -> DoWhileLoop
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 DoWhileLoop
impl Debug for DoWhileLoop
Auto Trait Implementations§
impl RefUnwindSafe for DoWhileLoop
impl Send for DoWhileLoop
impl Sync for DoWhileLoop
impl Unpin for DoWhileLoop
impl UnwindSafe for DoWhileLoop
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