pub struct TypeExprNode {
pub kind: TypeExprKind,
pub operand: AstNodeId,
pub target_type: SequenceTypeNode,
pub span: SourceSpan,
pub resolved_atomic_type: Option<QualifiedName>,
}Expand description
Type expression (instance of, treat as, cast as, castable as).
Fields§
§kind: TypeExprKindKind of type expression.
operand: AstNodeIdOperand expression.
target_type: SequenceTypeNodeTarget type (AST form with raw strings).
span: SourceSpanSource location.
resolved_atomic_type: Option<QualifiedName>Resolved atomic type QName (populated during binding for Atomic item types). Uses interned NameIds and resolved namespace URIs.
Implementations§
Source§impl TypeExprNode
impl TypeExprNode
pub fn new( kind: TypeExprKind, operand: AstNodeId, target_type: SequenceTypeNode, span: SourceSpan, ) -> Self
Trait Implementations§
Source§impl Clone for TypeExprNode
impl Clone for TypeExprNode
Source§fn clone(&self) -> TypeExprNode
fn clone(&self) -> TypeExprNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeExprNode
impl RefUnwindSafe for TypeExprNode
impl Send for TypeExprNode
impl Sync for TypeExprNode
impl Unpin for TypeExprNode
impl UnsafeUnpin for TypeExprNode
impl UnwindSafe for TypeExprNode
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