pub struct DoBlock {
pub do_keyword: Token,
pub body: Block,
pub end_keyword: Token,
}Expand description
A struct representing a do statement
Fields§
§do_keyword: TokenThe do keyword.
body: BlockThe body of the do block.
end_keyword: TokenThe end keyword
Trait Implementations§
Source§impl Ord for DoBlock
impl Ord for DoBlock
Source§impl PartialOrd for DoBlock
impl PartialOrd for DoBlock
Source§impl Print for DoBlock
impl Print for DoBlock
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
impl Eq for DoBlock
impl StructuralPartialEq for DoBlock
Auto Trait Implementations§
impl Freeze for DoBlock
impl RefUnwindSafe for DoBlock
impl !Send for DoBlock
impl !Sync for DoBlock
impl Unpin for DoBlock
impl UnwindSafe for DoBlock
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