Skip to main content

UnsupportedConstruct

Enum UnsupportedConstruct 

Source
pub enum UnsupportedConstruct {
Show 21 variants WithStatement, UsingDeclaration, LabeledStatement, LabeledJump, DebuggerStatement, EnumDeclaration, NamespaceDeclaration, RuntimeImportEquals, RuntimeExportAll, ExportAssignment, DecoratedDeclaration, DynamicImportExpression, ImportDeclarationInScript, ExportDeclarationInScript, DynamicImportInScript, ImportMeta, EscapedIdentifier, NonDecimalBigInt, ReturnOutsideFunction, DerivedConstructorShape, ThisBeforeDerivedSuper,
}
Expand description

Runtime syntax this instruction set cannot express faithfully, or that carries no runtime semantics. Every variant names one rejected construct; there is no catch-all. None of these occur in the executable corpus.

Variants§

§

WithStatement

with opens a dynamic scope the register model cannot represent.

§

UsingDeclaration

using/await using explicit resource management (no disposal opcode).

§

LabeledStatement

A labeled statement (no labeled control-flow target model).

§

LabeledJump

A labeled break/continue.

§

DebuggerStatement

debugger is a host breakpoint request with no bytecode.

§

EnumDeclaration

A runtime enum (const enums are type-only and already erased).

§

NamespaceDeclaration

A runtime namespace/module block.

§

RuntimeImportEquals

A runtime import x = require(...) / import x = ns declaration.

§

RuntimeExportAll

A runtime export * from ... (no dynamic per-name re-export).

§

ExportAssignment

An export = assignment.

§

DecoratedDeclaration

A decorated declaration.

§

DynamicImportExpression

A dynamic import(expr) whose specifier is not a string literal.

§

ImportDeclarationInScript

An import declaration is invalid in a classic script.

§

ExportDeclarationInScript

An export declaration is invalid in a classic script.

§

DynamicImportInScript

A dynamic import expression is invalid in a classic script.

§

ImportMeta

import.meta (no host meta-object primitive).

§

EscapedIdentifier

An identifier spelled with unicode escape sequences.

§

NonDecimalBigInt

A non-decimal (0x/0o/0b) bigint literal.

§

ReturnOutsideFunction

A return at module top level.

§

DerivedConstructorShape

A derived constructor that is not an implicit constructor or a single direct top-level super(...) call.

§

ThisBeforeDerivedSuper

A derived constructor references this before its direct super(...).

Trait Implementations§

Source§

impl Clone for UnsupportedConstruct

Source§

fn clone(&self) -> UnsupportedConstruct

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for UnsupportedConstruct

Source§

impl Debug for UnsupportedConstruct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for UnsupportedConstruct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for UnsupportedConstruct

Source§

impl PartialEq for UnsupportedConstruct

Source§

fn eq(&self, other: &UnsupportedConstruct) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for UnsupportedConstruct

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.