Struct libcst_native::MatchKeywordElement
source · pub struct MatchKeywordElement<'a> {
pub key: Name<'a>,
pub pattern: MatchPattern<'a>,
pub comma: Option<Comma<'a>>,
pub whitespace_before_equal: ParenthesizableWhitespace<'a>,
pub whitespace_after_equal: ParenthesizableWhitespace<'a>,
}Fields§
§key: Name<'a>§pattern: MatchPattern<'a>§comma: Option<Comma<'a>>§whitespace_before_equal: ParenthesizableWhitespace<'a>§whitespace_after_equal: ParenthesizableWhitespace<'a>Trait Implementations§
source§impl<'a> Clone for MatchKeywordElement<'a>
impl<'a> Clone for MatchKeywordElement<'a>
source§fn clone(&self) -> MatchKeywordElement<'a>
fn clone(&self) -> MatchKeywordElement<'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 MatchKeywordElement<'a>
impl<'a> Debug for MatchKeywordElement<'a>
source§impl<'a> PartialEq<MatchKeywordElement<'a>> for MatchKeywordElement<'a>
impl<'a> PartialEq<MatchKeywordElement<'a>> for MatchKeywordElement<'a>
source§fn eq(&self, other: &MatchKeywordElement<'a>) -> bool
fn eq(&self, other: &MatchKeywordElement<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for MatchKeywordElement<'a>
impl<'a> StructuralEq for MatchKeywordElement<'a>
impl<'a> StructuralPartialEq for MatchKeywordElement<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MatchKeywordElement<'a>
impl<'a> Send for MatchKeywordElement<'a>
impl<'a> Sync for MatchKeywordElement<'a>
impl<'a> Unpin for MatchKeywordElement<'a>
impl<'a> UnwindSafe for MatchKeywordElement<'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