pub struct MatchCase<'a> {
pub pattern: MatchPattern<'a>,
pub guard: Option<Expression<'a>>,
pub body: Suite<'a>,
pub leading_lines: Vec<EmptyLine<'a>>,
pub whitespace_after_case: SimpleWhitespace<'a>,
pub whitespace_before_if: SimpleWhitespace<'a>,
pub whitespace_after_if: SimpleWhitespace<'a>,
pub whitespace_before_colon: SimpleWhitespace<'a>,
}
Fields§
§pattern: MatchPattern<'a>
§guard: Option<Expression<'a>>
§body: Suite<'a>
§leading_lines: Vec<EmptyLine<'a>>
§whitespace_after_case: SimpleWhitespace<'a>
§whitespace_before_if: SimpleWhitespace<'a>
§whitespace_after_if: SimpleWhitespace<'a>
§whitespace_before_colon: SimpleWhitespace<'a>
Trait Implementations§
impl<'a> Eq for MatchCase<'a>
impl<'a> StructuralPartialEq for MatchCase<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchCase<'a>
impl<'a> RefUnwindSafe for MatchCase<'a>
impl<'a> Send for MatchCase<'a>
impl<'a> Sync for MatchCase<'a>
impl<'a> Unpin for MatchCase<'a>
impl<'a> UnwindSafe for MatchCase<'a>
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