pub struct ResultVariant {
pub name: String,
pub rust_type: String,
pub span_expr: Option<String>,
}Expand description
A custom ParseResult variant for typed AST nodes
Fields§
§name: StringName of the variant (e.g., “Expr”)
rust_type: StringRust type it holds (e.g., “Expression”)
span_expr: Option<String>Expression to get span, where _ is the value (e.g., “_.span”)
Trait Implementations§
Source§impl Clone for ResultVariant
impl Clone for ResultVariant
Source§fn clone(&self) -> ResultVariant
fn clone(&self) -> ResultVariant
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 moreAuto Trait Implementations§
impl Freeze for ResultVariant
impl RefUnwindSafe for ResultVariant
impl Send for ResultVariant
impl Sync for ResultVariant
impl Unpin for ResultVariant
impl UnsafeUnpin for ResultVariant
impl UnwindSafe for ResultVariant
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