Struct rustpython_ast::WithItem
source · pub struct WithItem<R = TextRange> {
pub range: OptionalRange<R>,
pub context_expr: Expr<R>,
pub optional_vars: Option<Box<Expr<R>>>,
}
Expand description
See also withitem
Fields§
§range: OptionalRange<R>
§context_expr: Expr<R>
§optional_vars: Option<Box<Expr<R>>>
Trait Implementations§
source§impl<R: PartialEq> PartialEq<WithItem<R>> for WithItem<R>
impl<R: PartialEq> PartialEq<WithItem<R>> for WithItem<R>
impl<R> StructuralPartialEq for WithItem<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for WithItem<R>where R: RefUnwindSafe,
impl<R> Send for WithItem<R>where R: Send,
impl<R> Sync for WithItem<R>where R: Sync,
impl<R> Unpin for WithItem<R>where R: Unpin,
impl<R> UnwindSafe for WithItem<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