pub struct Match<'a> {
pub subject: Expression<'a>,
pub cases: Vec<MatchCase<'a>>,
pub leading_lines: Vec<EmptyLine<'a>>,
pub whitespace_after_match: SimpleWhitespace<'a>,
pub whitespace_before_colon: SimpleWhitespace<'a>,
pub whitespace_after_colon: TrailingWhitespace<'a>,
pub indent: Option<&'a str>,
pub footer: Vec<EmptyLine<'a>>,
}
Fields§
§subject: Expression<'a>
§cases: Vec<MatchCase<'a>>
§leading_lines: Vec<EmptyLine<'a>>
§whitespace_after_match: SimpleWhitespace<'a>
§whitespace_before_colon: SimpleWhitespace<'a>
§whitespace_after_colon: TrailingWhitespace<'a>
§indent: Option<&'a str>
Trait Implementations§
impl<'a> Eq for Match<'a>
impl<'a> StructuralPartialEq for Match<'a>
Auto Trait Implementations§
impl<'a> Freeze for Match<'a>
impl<'a> RefUnwindSafe for Match<'a>
impl<'a> Send for Match<'a>
impl<'a> Sync for Match<'a>
impl<'a> Unpin for Match<'a>
impl<'a> UnwindSafe for Match<'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