Struct rustpython_ast::MatchCase
source · pub struct MatchCase<R = TextRange> {
pub range: OptionalRange<R>,
pub pattern: Pattern<R>,
pub guard: Option<Box<Expr<R>>>,
pub body: Vec<Stmt<R>>,
}
Expand description
See also match_case
Fields§
§range: OptionalRange<R>
§pattern: Pattern<R>
§guard: Option<Box<Expr<R>>>
§body: Vec<Stmt<R>>
Trait Implementations§
source§impl<R: PartialEq> PartialEq for MatchCase<R>
impl<R: PartialEq> PartialEq for MatchCase<R>
impl<R> StructuralPartialEq for MatchCase<R>
Auto Trait Implementations§
impl<R> Freeze for MatchCase<R>where
R: Freeze,
impl<R> RefUnwindSafe for MatchCase<R>where
R: RefUnwindSafe,
impl<R> Send for MatchCase<R>where
R: Send,
impl<R> Sync for MatchCase<R>where
R: Sync,
impl<R> Unpin for MatchCase<R>where
R: Unpin,
impl<R> UnwindSafe for MatchCase<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