Skip to main content

IdlElementType

Enum IdlElementType 

Source
#[repr(u8)]
pub enum IdlElementType {
Show 47 variants Void = 0, Boolean = 1, Byte = 2, Octet = 3, Short = 4, UnsignedShort = 5, Long = 6, UnsignedLong = 7, LongLong = 8, UnsignedLongLong = 9, Float = 10, Double = 11, LongDouble = 12, Char = 13, WChar = 14, String = 15, WString = 16, Any = 17, Object = 18, ValueBase = 19, Struct = 20, Union = 21, Enum = 22, Interface = 23, Module = 24, Exception = 25, Typedef = 26, Sequence = 27, Array = 28, Fixed = 29, Attribute = 30, Operation = 31, Const = 32, ExceptionMember = 33, ModuleDeclaration = 34, InterfaceDeclaration = 35, StructDeclaration = 36, UnionDeclaration = 37, EnumDeclaration = 38, TypedefDeclaration = 39, ConstDeclaration = 40, ExceptionDeclaration = 41, SourceFile = 42, Include = 43, Pragma = 44, Error = 45, Eof = 46,
}
Expand description

Element types for the IDL parser.

Variants§

§

Void = 0

The void type.

§

Boolean = 1

The boolean type.

§

Byte = 2

The byte type.

§

Octet = 3

The octet type.

§

Short = 4

The short type.

§

UnsignedShort = 5

The unsigned short type.

§

Long = 6

The long type.

§

UnsignedLong = 7

The unsigned long type.

§

LongLong = 8

The long long type.

§

UnsignedLongLong = 9

The unsigned long long type.

§

Float = 10

The float type.

§

Double = 11

The double type.

§

LongDouble = 12

The long double type.

§

Char = 13

The char type.

§

WChar = 14

The wchar type.

§

String = 15

The string type.

§

WString = 16

The wstring type.

§

Any = 17

The any type.

§

Object = 18

The Object type.

§

ValueBase = 19

The ValueBase type.

§

Struct = 20

A struct type.

§

Union = 21

A union type.

§

Enum = 22

An enum type.

§

Interface = 23

An interface type.

§

Module = 24

A module type.

§

Exception = 25

An exception type.

§

Typedef = 26

A typedef.

§

Sequence = 27

A sequence type.

§

Array = 28

An array type.

§

Fixed = 29

A fixed-point type.

§

Attribute = 30

An attribute member.

§

Operation = 31

An operation member.

§

Const = 32

A constant member.

§

ExceptionMember = 33

An exception member.

§

ModuleDeclaration = 34

A module declaration.

§

InterfaceDeclaration = 35

An interface declaration.

§

StructDeclaration = 36

A struct declaration.

§

UnionDeclaration = 37

A union declaration.

§

EnumDeclaration = 38

An enum declaration.

§

TypedefDeclaration = 39

A typedef declaration.

§

ConstDeclaration = 40

A constant declaration.

§

ExceptionDeclaration = 41

An exception declaration.

§

SourceFile = 42

The entire source file.

§

Include = 43

An include directive.

§

Pragma = 44

A pragma directive.

§

Error = 45

An error element.

§

Eof = 46

End of file.

Trait Implementations§

Source§

impl Clone for IdlElementType

Source§

fn clone(&self) -> IdlElementType

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 IdlElementType

Source§

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

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

impl<'de> Deserialize<'de> for IdlElementType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl ElementType for IdlElementType

Source§

type Role = UniversalElementRole

The associated role type for this element kind.
Source§

fn role(&self) -> Self::Role

Returns the general syntactic role of this element. Read more
Source§

fn is_role(&self, role: Self::Role) -> bool

Returns true if this element matches the specified language-specific role.
Source§

fn is_universal(&self, role: UniversalElementRole) -> bool

Returns true if this element matches the specified universal role.
Source§

fn is_root(&self) -> bool

Returns true if this element represents the root of the parsed tree.
Source§

fn is_error(&self) -> bool

Returns true if this element represents an error condition.
Source§

impl From<IdlTokenType> for IdlElementType

Source§

fn from(token: IdlTokenType) -> Self

Converts to this type from the input type.
Source§

impl Hash for IdlElementType

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 IdlElementType

Source§

fn eq(&self, other: &IdlElementType) -> 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 Serialize for IdlElementType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for IdlElementType

Source§

impl Eq for IdlElementType

Source§

impl StructuralPartialEq for IdlElementType

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<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, 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,