pub enum PrimaryExpr {
ScopedName(ScopedName),
Literal(Literal),
ConstExpr(Box<ConstExpr>),
}Variants§
Trait Implementations§
Source§impl Clone for PrimaryExpr
impl Clone for PrimaryExpr
Source§fn clone(&self) -> PrimaryExpr
fn clone(&self) -> PrimaryExpr
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 Debug for PrimaryExpr
impl Debug for PrimaryExpr
Source§impl<'de> Deserialize<'de> for PrimaryExpr
impl<'de> Deserialize<'de> for PrimaryExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PrimaryExpr> for PrimaryExpr
impl From<PrimaryExpr> for PrimaryExpr
Source§fn from(value: PrimaryExpr) -> Self
fn from(value: PrimaryExpr) -> Self
Converts to this type from the input type.
Source§impl<'a> FromTreeSitter<'a> for PrimaryExpr
impl<'a> FromTreeSitter<'a> for PrimaryExpr
fn from_node(node: Node<'a>, ctx: &mut ParseContext<'a>) -> ParserResult<Self>
Auto Trait Implementations§
impl Freeze for PrimaryExpr
impl RefUnwindSafe for PrimaryExpr
impl Send for PrimaryExpr
impl Sync for PrimaryExpr
impl Unpin for PrimaryExpr
impl UnsafeUnpin for PrimaryExpr
impl UnwindSafe for PrimaryExpr
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