pub struct MatchArm {
pub pattern: Pattern,
pub guard: Option<Box<Expression>>,
pub expression: Box<Expression>,
}Fields§
§pattern: Pattern§guard: Option<Box<Expression>>§expression: Box<Expression>Implementations§
Trait Implementations§
impl StructuralPartialEq for MatchArm
Auto Trait Implementations§
impl Forget for MatchArm
impl Freeze for MatchArmwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<FormatStringPart>: Freeze,
PhantomData<Expression>: Freeze,
*const ArcInner<Box<[Type]>> is !null: Freeze,
PhantomData<ArcInner<Box<[Type]>>>: Freeze,
*const ArcInner<FunctionType> is !null: Freeze,
PhantomData<ArcInner<FunctionType>>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const ArcInner<Spelling> is !null: Freeze,
PhantomData<ArcInner<Spelling>>: Freeze,
PhantomData<Pattern>: Freeze,
PhantomData<StructFieldPattern>: Freeze,
*const Pattern is !null: Freeze,
*const Expression is !null: Freeze,
impl Move for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnsafeUnpin for MatchArmwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FormatStringPart>: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
*const ArcInner<Box<[Type]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<[Type]>>>: UnsafeUnpin,
*const ArcInner<FunctionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<FunctionType>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const ArcInner<Spelling> is !null: UnsafeUnpin,
PhantomData<ArcInner<Spelling>>: UnsafeUnpin,
PhantomData<Pattern>: UnsafeUnpin,
PhantomData<StructFieldPattern>: UnsafeUnpin,
*const Pattern is !null: UnsafeUnpin,
*const Expression is !null: UnsafeUnpin,
impl UnwindSafe for MatchArmwhere
RawVecInner: UnwindSafe,
BoxRaw<Expression>: UnwindSafe,
Arc<Box<[Type]>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
BoxRaw<Annotation>: UnwindSafe,
BoxRaw<Binding>: UnwindSafe,
BoxRaw<Pattern>: 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