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