pub struct AstMetadata {
pub span: Option<ByteRange>,
pub type_hint: Option<String>,
pub synthetic: bool,
pub tags: Vec<String>,
}Expand description
Metadata attached to an AST node during parsing or elaboration.
Fields§
§span: Option<ByteRange>Source span of the node.
type_hint: Option<String>Elaboration-time type annotation (stringified).
synthetic: boolWhether this node was synthesized (not from real source).
Arbitrary string tags for tooling.
Implementations§
Source§impl AstMetadata
impl AstMetadata
Trait Implementations§
Source§impl Clone for AstMetadata
impl Clone for AstMetadata
Source§fn clone(&self) -> AstMetadata
fn clone(&self) -> AstMetadata
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 Debug for AstMetadata
impl Debug for AstMetadata
Source§impl Default for AstMetadata
impl Default for AstMetadata
Source§fn default() -> AstMetadata
fn default() -> AstMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AstMetadata
impl RefUnwindSafe for AstMetadata
impl Send for AstMetadata
impl Sync for AstMetadata
impl Unpin for AstMetadata
impl UnsafeUnpin for AstMetadata
impl UnwindSafe for AstMetadata
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