pub struct RepeatBlock {
pub repeat_keyword: Token,
pub body: Block,
pub until_keyword: Token,
pub condition: Pointer<Expression>,
}Expand description
A struct representing a repeat block.
Fields§
§repeat_keyword: TokenThe “repeat” keyword.
body: BlockThe body of this repeat block.
until_keyword: TokenThe “until” keyword.
condition: Pointer<Expression>The condition that will stop this block from running.
Trait Implementations§
Source§impl Clone for RepeatBlock
impl Clone for RepeatBlock
Source§fn clone(&self) -> RepeatBlock
fn clone(&self) -> RepeatBlock
Returns a duplicate 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 RepeatBlock
impl Debug for RepeatBlock
Source§impl GetRange for RepeatBlock
impl GetRange for RepeatBlock
Source§impl Hash for RepeatBlock
impl Hash for RepeatBlock
Source§impl Ord for RepeatBlock
impl Ord for RepeatBlock
Source§fn cmp(&self, other: &RepeatBlock) -> Ordering
fn cmp(&self, other: &RepeatBlock) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for RepeatBlock
impl Parse for RepeatBlock
Source§impl PartialEq for RepeatBlock
impl PartialEq for RepeatBlock
Source§impl PartialOrd for RepeatBlock
impl PartialOrd for RepeatBlock
Source§impl Print for RepeatBlock
impl Print for RepeatBlock
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 RepeatBlock
impl StructuralPartialEq for RepeatBlock
Auto Trait Implementations§
impl Freeze for RepeatBlock
impl RefUnwindSafe for RepeatBlock
impl !Send for RepeatBlock
impl !Sync for RepeatBlock
impl Unpin for RepeatBlock
impl UnwindSafe for RepeatBlock
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