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 GetRange for DoBlock
impl GetRange for DoBlock
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Ord for DoBlock
impl Ord for DoBlock
Source§impl PartialOrd for DoBlock
impl PartialOrd for DoBlock
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