README

Yoorkin/webidl/syntax does not have a README file

#
Definitions

type Id = String

#
Argument

pub(all) struct Argument {
name : String
idl_type : IDLTypeWithExtAttr
default : Value?
optional : Bool
variadic : Bool
attrs :
List
[ExtAttr]
}

impl Show for Argument
impl ToJson for Argument

#
AsyncIterable

pub(all) struct AsyncIterable {
idl_type : IDLTypeWithExtAttr
opt_type : IDLTypeWithExtAttr?
arguments :
List
[Argument]
attrs :
List
[ExtAttr]
}

#
Attribute

pub(all) struct Attribute {
name : String
special : AttributeKind
readonly_ : Bool
idl_type : IDLTypeWithExtAttr
attrs :
List
[ExtAttr]
}

impl Show for Attribute
impl ToJson for Attribute

#
AttributeKind

pub(all) enum AttributeKind {
Regular
Static
Stringifier
Inherit
}

#
Callback

pub(all) struct Callback {
name : String
idl_type : IDLType
arguments :
List
[Argument]
attrs :
List
[ExtAttr]
}

impl Show for Callback
impl ToJson for Callback

#
Const

pub(all) struct Const {
name : String
idl_type : IDLType
value : Value
attrs :
List
[ExtAttr]
}

impl Show for Const
impl ToJson for Const

#
Constructor

pub(all) struct Constructor {
arguments :
List
[Argument]
attrs :
List
[ExtAttr]
}

impl Show for Constructor

#
Definition

pub(all) enum Definition {
Interface(Interface)
InterfaceMixin(InterfaceMixin)
Namespace(Namespace)
Callback(Callback)
Dictionary(Dictionary)
Enum(Enum)
Typedef(Typedef)
Includes(Includes)
}

impl Show for Definition

#
Dictionary

pub(all) struct Dictionary {
name : String
partial : Bool
members :
List
[DictionaryField]
inheritance : String?
attrs :
List
[ExtAttr]
}

impl Show for Dictionary

#
DictionaryField

pub(all) struct DictionaryField {
name : String
required : Bool
idl_type : IDLTypeWithExtAttr
attrs :
List
[ExtAttr]
default : Value?
}

#
Enum

pub(all) struct Enum {
name : String
values :
List
[String]
attrs :
List
[ExtAttr]
}

impl Show for Enum
impl ToJson for Enum

#
ExtAttr

pub(all) struct ExtAttr {
name : String
rhs : Rhs
}

impl Show for ExtAttr
impl ToJson for ExtAttr

#
FloatingType

pub(all) enum FloatingType {
Float
Double
Unrestricted(FloatingType)
}

#
IDLType

pub(all) enum IDLType {
Integer(IntegerType)
String(StringType)
Floating(FloatingType)
Nullable(IDLType)
Union(
List
[IDLTypeWithExtAttr])
Id(String)
ArrayBuffer
SharedArrayBuffer
DataView
Int8Array
Int16Array
Int32Array
Uint8Array
Uint16Array
Uint32Array
Uint8ClampedArray
BigInt64Array
BigUint64Array
Float16Array
Float32Array
Float64Array
Boolean
Byte
Octet
Bigint
Object
Identifer
Symbol
Undefined
Promise(IDLType)
Record(StringType, IDLTypeWithExtAttr)
Sequence(IDLTypeWithExtAttr)
AsyncSequence(IDLTypeWithExtAttr)
FrozenArray(IDLTypeWithExtAttr)
ObservableArray(IDLTypeWithExtAttr)
Any
}

impl Show for IDLType
impl ToJson for IDLType

#
IDLTypeWithExtAttr

pub(all) struct IDLTypeWithExtAttr {
attrs :
List
[ExtAttr]
ty : IDLType
}

#
Includes

pub(all) struct Includes {
target : String
includes : String
attrs :
List
[ExtAttr]
}

impl Show for Includes
impl ToJson for Includes

#
IntegerType

pub(all) enum IntegerType {
Short
Long
LongLong
Unsigned(IntegerType)
}

impl Show for IntegerType

#
Interface

pub(all) struct Interface {
name : String
partial : Bool
members :
List
[Member]
inheritance : String?
attrs :
List
[ExtAttr]
}

impl Show for Interface
impl ToJson for Interface

#
InterfaceMixin

pub(all) struct InterfaceMixin {
name : String
partial : Bool
members :
List
[Member]
attrs :
List
[ExtAttr]
}

#
Iterable

pub(all) struct Iterable {
idl_type : IDLTypeWithExtAttr
opt_type : IDLTypeWithExtAttr?
async_ : Bool
attrs :
List
[ExtAttr]
}

impl Show for Iterable
impl ToJson for Iterable

#
MapLike

pub(all) struct MapLike {
idl_type : IDLTypeWithExtAttr
readonly_ : Bool
attrs :
List
[ExtAttr]
}

impl Show for MapLike
impl ToJson for MapLike

#
Member

pub(all) enum Member {
Operation(Operation)
Constructor(Constructor)
Attribute(Attribute)
Const(Const)
Iterable(Iterable)
AsyncIterable(AsyncIterable)
MapLike(MapLike)
SetLike(SetLike)
}

impl Show for Member
impl ToJson for Member

#
Namespace

pub(all) struct Namespace {
name : String
partial : Bool
members :
List
[Member]
attrs :
List
[ExtAttr]
}

impl Show for Namespace
impl ToJson for Namespace

#
Operation

pub(all) struct Operation {
special : OperationKind
idl_type : IDLType?
name : String?
arguments :
List
[Argument]
attrs :
List
[ExtAttr]
}

impl Show for Operation
impl ToJson for Operation

#
OperationKind

pub(all) enum OperationKind {
Regular
Getter
Setter
Deleter
Static
Stringifier
}

#
Rhs

pub(all) enum Rhs {
NoArgs
ArgList(
List
[Argument])
Ident(String)
String(String)
Integer(String)
Decimal(String)
WildCard
IdentList(
List
[String])
IntegerList(
List
[String])
NamedArgList(String,
List
[Argument])
}

impl Show for Rhs
impl ToJson for Rhs

#
SetLike

pub(all) struct SetLike {
idl_type : IDLTypeWithExtAttr
readonly_ : Bool
attrs :
List
[ExtAttr]
}

impl Show for SetLike
impl ToJson for SetLike

#
StringType

pub(all) enum StringType {
ByteString
DOMString
USVString
}

impl Show for StringType

#
Typedef

pub(all) struct Typedef {
name : String
idl_type : IDLTypeWithExtAttr
attrs :
List
[ExtAttr]
}

impl Show for Typedef
impl ToJson for Typedef

#
Value

pub(all) enum Value {
Decimal(String)
Undefined
String(String)
Number(String)
Boolean(Bool)
Null
Infinity(Bool)
NaN
Sequence
Dictionary
}

impl Show for Value
impl ToJson for Value