pub struct ExprList<R = TextRange> {
pub range: R,
pub elts: Vec<Expr<R>, Global>,
pub ctx: ExprContext,
}
Expand description
See also List
Fields§
§range: R
§elts: Vec<Expr<R>, Global>
§ctx: ExprContext
Trait Implementations§
source§impl Located for ExprList<SourceRange>
impl Located for ExprList<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for ExprList<SourceRange>
impl LocatedMut for ExprList<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
source§impl Parse for ExprList<TextRange>
impl Parse for ExprList<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<ExprList<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<ExprList<R>> for ExprList<R>where
R: PartialEq<R>,
impl<R> PartialEq<ExprList<R>> for ExprList<R>where R: PartialEq<R>,
impl<R> StructuralPartialEq for ExprList<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for ExprList<R>where R: RefUnwindSafe,
impl<R> Send for ExprList<R>where R: Send,
impl<R> Sync for ExprList<R>where R: Sync,
impl<R> Unpin for ExprList<R>where R: Unpin,
impl<R> UnwindSafe for ExprList<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