pub struct MatchAs<'a> {
pub pattern: Option<MatchPattern<'a>>,
pub name: Option<Name<'a>>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_before_as: Option<ParenthesizableWhitespace<'a>>,
pub whitespace_after_as: Option<ParenthesizableWhitespace<'a>>,
}
Fields§
§pattern: Option<MatchPattern<'a>>
§name: Option<Name<'a>>
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
§whitespace_before_as: Option<ParenthesizableWhitespace<'a>>
§whitespace_after_as: Option<ParenthesizableWhitespace<'a>>
Trait Implementations§
Source§impl<'a> ParenthesizedNode<'a> for MatchAs<'a>
impl<'a> ParenthesizedNode<'a> for MatchAs<'a>
fn lpar(&self) -> &Vec<LeftParen<'a>>
fn rpar(&self) -> &Vec<RightParen<'a>>
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)where
F: FnOnce(&mut CodegenState<'a>),
impl<'a> Eq for MatchAs<'a>
impl<'a> StructuralPartialEq for MatchAs<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchAs<'a>
impl<'a> RefUnwindSafe for MatchAs<'a>
impl<'a> Send for MatchAs<'a>
impl<'a> Sync for MatchAs<'a>
impl<'a> Unpin for MatchAs<'a>
impl<'a> UnwindSafe for MatchAs<'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