pub struct AnnotationReference {
pub span: Span,
pub context: Vec<String>,
pub origin: Origin,
}Expand description
A retained reference to erased annotation syntax.
Fields§
§span: SpanExact annotation location in the TypeScript source.
context: Vec<String>Parser context in which the annotation occurred.
origin: OriginComplete TypeScript-to-JavaScript derivation chain.
Trait Implementations§
Source§impl Clone for AnnotationReference
impl Clone for AnnotationReference
Source§fn clone(&self) -> AnnotationReference
fn clone(&self) -> AnnotationReference
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 moreSource§impl Debug for AnnotationReference
impl Debug for AnnotationReference
impl Eq for AnnotationReference
Source§impl PartialEq for AnnotationReference
impl PartialEq for AnnotationReference
impl StructuralPartialEq for AnnotationReference
Auto Trait Implementations§
impl Freeze for AnnotationReference
impl RefUnwindSafe for AnnotationReference
impl Send for AnnotationReference
impl Sync for AnnotationReference
impl Unpin for AnnotationReference
impl UnsafeUnpin for AnnotationReference
impl UnwindSafe for AnnotationReference
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