Struct valkyrie_ast::TypingExpression
source · pub struct TypingExpression {
pub body: ExpressionKind,
pub span: Range<u32>,
}Expand description
Temporary node for use in the parser
Fields§
§body: ExpressionKindThe type level expression body
span: Range<u32>The range of the node
Implementations§
source§impl TypingExpression
impl TypingExpression
sourcepub fn as_normal(self) -> ExpressionNode
pub fn as_normal(self) -> ExpressionNode
Convert this node into a full expression node
Trait Implementations§
source§impl Clone for TypingExpression
impl Clone for TypingExpression
source§fn clone(&self) -> TypingExpression
fn clone(&self) -> TypingExpression
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 Debug for TypingExpression
impl Debug for TypingExpression
source§impl Default for TypingExpression
impl Default for TypingExpression
source§fn default() -> TypingExpression
fn default() -> TypingExpression
Returns the “default value” for a type. Read more
source§impl Hash for TypingExpression
impl Hash for TypingExpression
source§impl PartialEq for TypingExpression
impl PartialEq for TypingExpression
source§fn eq(&self, other: &TypingExpression) -> bool
fn eq(&self, other: &TypingExpression) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TypingExpression
impl StructuralPartialEq for TypingExpression
Auto Trait Implementations§
impl RefUnwindSafe for TypingExpression
impl Send for TypingExpression
impl Sync for TypingExpression
impl Unpin for TypingExpression
impl UnwindSafe for TypingExpression
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