Skip to main content

NcsAuxCode

Enum NcsAuxCode 

Source
#[repr(u8)]
pub enum NcsAuxCode {
Show 39 variants None = 0, TypeVoid = 1, TypeCommand = 2, TypeInteger = 3, TypeFloat = 4, TypeString = 5, TypeObject = 6, TypeEngst0 = 16, TypeEngst1 = 17, TypeEngst2 = 18, TypeEngst3 = 19, TypeEngst4 = 20, TypeEngst5 = 21, TypeEngst6 = 22, TypeEngst7 = 23, TypeEngst8 = 24, TypeEngst9 = 25, TypeTypeIntegerInteger = 32, TypeTypeFloatFloat = 33, TypeTypeObjectObject = 34, TypeTypeStringString = 35, TypeTypeStructStruct = 36, TypeTypeIntegerFloat = 37, TypeTypeFloatInteger = 38, TypeTypeEngst0Engst0 = 48, TypeTypeEngst1Engst1 = 49, TypeTypeEngst2Engst2 = 50, TypeTypeEngst3Engst3 = 51, TypeTypeEngst4Engst4 = 52, TypeTypeEngst5Engst5 = 53, TypeTypeEngst6Engst6 = 54, TypeTypeEngst7Engst7 = 55, TypeTypeEngst8Engst8 = 56, TypeTypeEngst9Engst9 = 57, TypeTypeVectorVector = 58, TypeTypeVectorFloat = 59, TypeTypeFloatVector = 60, EvalInplace = 112, EvalPostplace = 113,
}
Expand description

One NWScript VM aux code.

Variants§

§

None = 0

No auxcode.

§

TypeVoid = 1

void.

§

TypeCommand = 2

command type.

§

TypeInteger = 3

integer type.

§

TypeFloat = 4

float type.

§

TypeString = 5

string type.

§

TypeObject = 6

object type.

§

TypeEngst0 = 16

engine structure 0.

§

TypeEngst1 = 17

engine structure 1.

§

TypeEngst2 = 18

engine structure 2.

§

TypeEngst3 = 19

engine structure 3.

§

TypeEngst4 = 20

engine structure 4.

§

TypeEngst5 = 21

engine structure 5.

§

TypeEngst6 = 22

engine structure 6.

§

TypeEngst7 = 23

engine structure 7.

§

TypeEngst8 = 24

engine structure 8.

§

TypeEngst9 = 25

engine structure 9.

§

TypeTypeIntegerInteger = 32

integer/integer operator specialization.

§

TypeTypeFloatFloat = 33

float/float operator specialization.

§

TypeTypeObjectObject = 34

object/object operator specialization.

§

TypeTypeStringString = 35

string/string operator specialization.

§

TypeTypeStructStruct = 36

struct/struct operator specialization.

§

TypeTypeIntegerFloat = 37

integer/float operator specialization.

§

TypeTypeFloatInteger = 38

float/integer operator specialization.

§

TypeTypeEngst0Engst0 = 48

engst0/engst0 operator specialization.

§

TypeTypeEngst1Engst1 = 49

engst1/engst1 operator specialization.

§

TypeTypeEngst2Engst2 = 50

engst2/engst2 operator specialization.

§

TypeTypeEngst3Engst3 = 51

engst3/engst3 operator specialization.

§

TypeTypeEngst4Engst4 = 52

engst4/engst4 operator specialization.

§

TypeTypeEngst5Engst5 = 53

engst5/engst5 operator specialization.

§

TypeTypeEngst6Engst6 = 54

engst6/engst6 operator specialization.

§

TypeTypeEngst7Engst7 = 55

engst7/engst7 operator specialization.

§

TypeTypeEngst8Engst8 = 56

engst8/engst8 operator specialization.

§

TypeTypeEngst9Engst9 = 57

engst9/engst9 operator specialization.

§

TypeTypeVectorVector = 58

vector/vector operator specialization.

§

TypeTypeVectorFloat = 59

vector/float operator specialization.

§

TypeTypeFloatVector = 60

float/vector operator specialization.

§

EvalInplace = 112

in-place evaluation marker.

§

EvalPostplace = 113

post-place evaluation marker.

Implementations§

Source§

impl NcsAuxCode

Source

pub fn canonical_name(self) -> Option<&'static str>

Returns the canonical short suffix used by the upstream assembler helper.

Source§

impl NcsAuxCode

Source

pub fn internal_name(self) -> &'static str

Returns the upstream internal auxcode constant name used by nwasm.

Trait Implementations§

Source§

impl Clone for NcsAuxCode

Source§

fn clone(&self) -> NcsAuxCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NcsAuxCode

Source§

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

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

impl Display for NcsAuxCode

Source§

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

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

impl Hash for NcsAuxCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for NcsAuxCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for NcsAuxCode

Source§

type Error = UnknownNcsAuxCode

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for NcsAuxCode

Source§

impl Eq for NcsAuxCode

Source§

impl StructuralPartialEq for NcsAuxCode

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more