Struct valkyrie_ast::GenericCallNode
source · pub struct GenericCallNode {
pub monadic: bool,
pub base: ExpressionKind,
pub term: GenericCallTerm,
pub span: Range<u32>,
}Expand description
A⦓T⦔, A⟨T⟩, A::<T>
Fields§
§monadic: boolthis?::<T>
base: ExpressionKindBase::<T>, ::<T as Trait>
term: GenericCallTermA::<T>::Associated::<T as Trait>
span: Range<u32>The range of the node
Implementations§
source§impl GenericCallNode
impl GenericCallNode
sourcepub fn with_base(self, base: ExpressionKind) -> Self
pub fn with_base(self, base: ExpressionKind) -> Self
Replace placeholder with actual expression
Trait Implementations§
source§impl Clone for GenericCallNode
impl Clone for GenericCallNode
source§fn clone(&self) -> GenericCallNode
fn clone(&self) -> GenericCallNode
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 GenericCallNode
impl Debug for GenericCallNode
source§impl From<GenericCallNode> for ExpressionKind
impl From<GenericCallNode> for ExpressionKind
source§fn from(o: GenericCallNode) -> Self
fn from(o: GenericCallNode) -> Self
Converts to this type from the input type.
source§impl Hash for GenericCallNode
impl Hash for GenericCallNode
source§impl PartialEq for GenericCallNode
impl PartialEq for GenericCallNode
source§fn eq(&self, other: &GenericCallNode) -> bool
fn eq(&self, other: &GenericCallNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for GenericCallNode
impl ValkyrieNode for GenericCallNode
impl Eq for GenericCallNode
impl StructuralPartialEq for GenericCallNode
Auto Trait Implementations§
impl RefUnwindSafe for GenericCallNode
impl Send for GenericCallNode
impl Sync for GenericCallNode
impl Unpin for GenericCallNode
impl UnwindSafe for GenericCallNode
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