pub struct ModModule<R = TextRange> {
pub range: EmptyRange<R>,
pub body: Vec<Stmt<R>, Global>,
pub type_ignores: Vec<TypeIgnore<R>, Global>,
}
Expand description
See also Module
Fields§
§range: EmptyRange<R>
§body: Vec<Stmt<R>, Global>
§type_ignores: Vec<TypeIgnore<R>, Global>
Trait Implementations§
source§impl Parse for ModModule<TextRange>
impl Parse for ModModule<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<ModModule<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<ModModule<R>> for ModModule<R>where
R: PartialEq<R>,
impl<R> PartialEq<ModModule<R>> for ModModule<R>where R: PartialEq<R>,
impl<R> StructuralPartialEq for ModModule<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for ModModule<R>where R: RefUnwindSafe,
impl<R> Send for ModModule<R>where R: Send,
impl<R> Sync for ModModule<R>where R: Sync,
impl<R> Unpin for ModModule<R>where R: Unpin,
impl<R> UnwindSafe for ModModule<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