Struct libcst_native::MatchMappingElement
source · 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 copy 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>
source§fn eq(&self, other: &MatchMappingElement<'a>) -> bool
fn eq(&self, other: &MatchMappingElement<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for MatchMappingElement<'a>
impl<'a> StructuralPartialEq for MatchMappingElement<'a>
Auto Trait Implementations§
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