pub struct ConstructExpr<T: ResolvedType = ()> {
pub id: NodeId<Expr>,
pub target: ConstructTarget<T>,
pub open_squirly_brace: Arc<Token>,
pub args: Vec<ConstructArg<T>>,
pub close_squirly_brace: Arc<Token>,
pub resolved_type: T,
}
Fields§
§id: NodeId<Expr>
§target: ConstructTarget<T>
§open_squirly_brace: Arc<Token>
§args: Vec<ConstructArg<T>>
§close_squirly_brace: Arc<Token>
§resolved_type: T
Trait Implementations§
Source§impl<T: Clone + ResolvedType> Clone for ConstructExpr<T>
impl<T: Clone + ResolvedType> Clone for ConstructExpr<T>
Source§fn clone(&self) -> ConstructExpr<T>
fn clone(&self) -> ConstructExpr<T>
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<T: Debug + ResolvedType> Debug for ConstructExpr<T>
impl<T: Debug + ResolvedType> Debug for ConstructExpr<T>
Source§impl<T: ResolvedType> From<ConstructExpr> for ConstructExpr<Option<T>>
impl<T: ResolvedType> From<ConstructExpr> for ConstructExpr<Option<T>>
Source§fn from(value: ConstructExpr<()>) -> Self
fn from(value: ConstructExpr<()>) -> Self
Converts to this type from the input type.
Source§impl<T: ResolvedType> Node<Expr> for ConstructExpr<T>
impl<T: ResolvedType> Node<Expr> for ConstructExpr<T>
Source§impl<T: PartialEq + ResolvedType> PartialEq for ConstructExpr<T>
impl<T: PartialEq + ResolvedType> PartialEq for ConstructExpr<T>
Source§impl<T: ResolvedType> Resolvable for ConstructExpr<Option<T>>
impl<T: ResolvedType> Resolvable for ConstructExpr<Option<T>>
fn is_resolved(&self) -> bool
fn is_signature_resolved(&self) -> bool
Source§impl<T: ResolvedType> TryFrom<ConstructExpr<Option<T>>> for ConstructExpr<T>
impl<T: ResolvedType> TryFrom<ConstructExpr<Option<T>>> for ConstructExpr<T>
impl<T: ResolvedType> StructuralPartialEq for ConstructExpr<T>
Auto Trait Implementations§
impl<T> Freeze for ConstructExpr<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstructExpr<T>where
T: RefUnwindSafe,
impl<T> Send for ConstructExpr<T>where
T: Send,
impl<T> Sync for ConstructExpr<T>
impl<T> Unpin for ConstructExpr<T>where
T: Unpin,
impl<T> UnwindSafe for ConstructExpr<T>where
T: UnwindSafe,
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