Struct rustpython_ast::StmtAsyncWith
source · pub struct StmtAsyncWith<R = TextRange> {
pub range: R,
pub items: Vec<WithItem<R>>,
pub body: Vec<Stmt<R>>,
pub type_comment: Option<String>,
}
Expand description
See also AsyncWith
Fields§
§range: R
§items: Vec<WithItem<R>>
§body: Vec<Stmt<R>>
§type_comment: Option<String>
Trait Implementations§
source§impl<R: Clone> Clone for StmtAsyncWith<R>
impl<R: Clone> Clone for StmtAsyncWith<R>
source§fn clone(&self) -> StmtAsyncWith<R>
fn clone(&self) -> StmtAsyncWith<R>
Returns a copy 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<R: Debug> Debug for StmtAsyncWith<R>
impl<R: Debug> Debug for StmtAsyncWith<R>
source§impl<T, U> Foldable<T, U> for StmtAsyncWith<T>
impl<T, U> Foldable<T, U> for StmtAsyncWith<T>
source§impl<R> From<StmtAsyncWith<R>> for Ast<R>
impl<R> From<StmtAsyncWith<R>> for Ast<R>
source§fn from(payload: StmtAsyncWith<R>) -> Self
fn from(payload: StmtAsyncWith<R>) -> Self
Converts to this type from the input type.
source§impl<R> From<StmtAsyncWith<R>> for Stmt<R>
impl<R> From<StmtAsyncWith<R>> for Stmt<R>
source§fn from(payload: StmtAsyncWith<R>) -> Self
fn from(payload: StmtAsyncWith<R>) -> Self
Converts to this type from the input type.
source§impl<R> Node for StmtAsyncWith<R>
impl<R> Node for StmtAsyncWith<R>
source§impl<R: PartialEq> PartialEq for StmtAsyncWith<R>
impl<R: PartialEq> PartialEq for StmtAsyncWith<R>
source§fn eq(&self, other: &StmtAsyncWith<R>) -> bool
fn eq(&self, other: &StmtAsyncWith<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Ranged for StmtAsyncWith<TextRange>
impl Ranged for StmtAsyncWith<TextRange>
impl<R> StructuralPartialEq for StmtAsyncWith<R>
Auto Trait Implementations§
impl<R> Freeze for StmtAsyncWith<R>where
R: Freeze,
impl<R> RefUnwindSafe for StmtAsyncWith<R>where
R: RefUnwindSafe,
impl<R> Send for StmtAsyncWith<R>where
R: Send,
impl<R> Sync for StmtAsyncWith<R>where
R: Sync,
impl<R> Unpin for StmtAsyncWith<R>where
R: Unpin,
impl<R> UnwindSafe for StmtAsyncWith<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