Struct libcst_native::MatchSingleton
source · pub struct MatchSingleton<'a> {
pub value: Name<'a>,
}
Fields§
§value: Name<'a>
Trait Implementations§
source§impl<'a> Clone for MatchSingleton<'a>
impl<'a> Clone for MatchSingleton<'a>
source§fn clone(&self) -> MatchSingleton<'a>
fn clone(&self) -> MatchSingleton<'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> Codegen<'a> for MatchSingleton<'a>
impl<'a> Codegen<'a> for MatchSingleton<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
source§impl<'a> Debug for MatchSingleton<'a>
impl<'a> Debug for MatchSingleton<'a>
source§impl<'a> ParenthesizedNode<'a> for MatchSingleton<'a>
impl<'a> ParenthesizedNode<'a> for MatchSingleton<'a>
fn lpar(&self) -> &Vec<LeftParen<'a>>
fn rpar(&self) -> &Vec<RightParen<'a>>
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)where
F: FnOnce(&mut CodegenState<'a>),
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self
source§impl<'a> PartialEq for MatchSingleton<'a>
impl<'a> PartialEq for MatchSingleton<'a>
source§fn eq(&self, other: &MatchSingleton<'a>) -> bool
fn eq(&self, other: &MatchSingleton<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for MatchSingleton<'a>
impl<'a> StructuralPartialEq for MatchSingleton<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MatchSingleton<'a>
impl<'a> Send for MatchSingleton<'a>
impl<'a> Sync for MatchSingleton<'a>
impl<'a> Unpin for MatchSingleton<'a>
impl<'a> UnwindSafe for MatchSingleton<'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