Struct valkyrie_parser::TypeExpressionNode
source · pub struct TypeExpressionNode {
pub type_infix: Vec<TypeInfixNode>,
pub type_term: Vec<TypeTermNode>,
pub span: Range<u32>,
}
Fields§
§type_infix: Vec<TypeInfixNode>
§type_term: Vec<TypeTermNode>
§span: Range<u32>
Implementations§
source§impl TypeExpressionNode
impl TypeExpressionNode
pub fn build_external(&self, file: FileID) -> Result<ExpressionKind>
Trait Implementations§
source§impl Clone for TypeExpressionNode
impl Clone for TypeExpressionNode
source§fn clone(&self) -> TypeExpressionNode
fn clone(&self) -> TypeExpressionNode
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 TypeExpressionNode
impl Debug for TypeExpressionNode
source§impl FromStr for TypeExpressionNode
impl FromStr for TypeExpressionNode
§type Err = YggdrasilError<ValkyrieRule>
type Err = YggdrasilError<ValkyrieRule>
The associated error which can be returned from parsing.
source§fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for TypeExpressionNode
impl Hash for TypeExpressionNode
source§impl YggdrasilNode for TypeExpressionNode
impl YggdrasilNode for TypeExpressionNode
Auto Trait Implementations§
impl RefUnwindSafe for TypeExpressionNode
impl Send for TypeExpressionNode
impl Sync for TypeExpressionNode
impl Unpin for TypeExpressionNode
impl UnwindSafe for TypeExpressionNode
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