pub trait DestructuringFieldInto: ASTNode {
type TypeAnnotation: Clone + PartialEq + Debug + Sync + Send + 'static;
// Required method
fn type_annotation_from_reader(
reader: &mut impl TokenReader<TSXToken, TokenStart>,
state: &mut ParsingState,
options: &ParseOptions,
) -> ParseResult<Self::TypeAnnotation>;
}
Required Associated Types§
Required Methods§
fn type_annotation_from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<Self::TypeAnnotation>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.