pub struct MatchMappingElement<'a> {
pub key: Expression<'a>,
pub pattern: MatchPattern<'a>,
pub comma: Option<Comma<'a>>,
pub whitespace_before_colon: ParenthesizableWhitespace<'a>,
pub whitespace_after_colon: ParenthesizableWhitespace<'a>,
}
Fields§
§key: Expression<'a>
§pattern: MatchPattern<'a>
§comma: Option<Comma<'a>>
§whitespace_before_colon: ParenthesizableWhitespace<'a>
§whitespace_after_colon: ParenthesizableWhitespace<'a>
Trait Implementations§
Source§impl<'a> Clone for MatchMappingElement<'a>
impl<'a> Clone for MatchMappingElement<'a>
Source§fn clone(&self) -> MatchMappingElement<'a>
fn clone(&self) -> MatchMappingElement<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for MatchMappingElement<'a>
impl<'a> Debug for MatchMappingElement<'a>
Source§impl<'a> PartialEq for MatchMappingElement<'a>
impl<'a> PartialEq for MatchMappingElement<'a>
impl<'a> Eq for MatchMappingElement<'a>
impl<'a> StructuralPartialEq for MatchMappingElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchMappingElement<'a>
impl<'a> RefUnwindSafe for MatchMappingElement<'a>
impl<'a> Send for MatchMappingElement<'a>
impl<'a> Sync for MatchMappingElement<'a>
impl<'a> Unpin for MatchMappingElement<'a>
impl<'a> UnwindSafe for MatchMappingElement<'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