pub struct StmtWhile<R = TextRange> {
pub range: R,
pub test: Box<Expr<R>, Global>,
pub body: Vec<Stmt<R>, Global>,
pub orelse: Vec<Stmt<R>, Global>,
}
Expand description
See also While
Fields§
§range: R
§test: Box<Expr<R>, Global>
§body: Vec<Stmt<R>, Global>
§orelse: Vec<Stmt<R>, Global>
Trait Implementations§
source§impl Located for StmtWhile<SourceRange>
impl Located for StmtWhile<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for StmtWhile<SourceRange>
impl LocatedMut for StmtWhile<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
source§impl Parse for StmtWhile<TextRange>
impl Parse for StmtWhile<TextRange>
fn lex_starts_at( source: &str, offset: TextSize ) -> SoftKeywordTransformer<Lexer<Chars<'_>>>
fn parse_tokens( lxr: impl IntoIterator<Item = Result<(Tok, TextRange), LexicalError>>, source_path: &str ) -> Result<StmtWhile<TextRange>, BaseError<ParseErrorType>>
fn parse( source: &str, source_path: &str ) -> Result<Self, BaseError<ParseErrorType>>
fn parse_without_path(source: &str) -> Result<Self, BaseError<ParseErrorType>>
fn parse_starts_at( source: &str, source_path: &str, offset: TextSize ) -> Result<Self, BaseError<ParseErrorType>>
source§impl<R> PartialEq<StmtWhile<R>> for StmtWhile<R>where
R: PartialEq<R>,
impl<R> PartialEq<StmtWhile<R>> for StmtWhile<R>where R: PartialEq<R>,
impl<R> StructuralPartialEq for StmtWhile<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for StmtWhile<R>where R: RefUnwindSafe,
impl<R> Send for StmtWhile<R>where R: Send,
impl<R> Sync for StmtWhile<R>where R: Sync,
impl<R> Unpin for StmtWhile<R>where R: Unpin,
impl<R> UnwindSafe for StmtWhile<R>where R: UnwindSafe,
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