#[non_exhaustive]
pub enum Validated {
    Argument(Name),
    Class(ClassDeclarationHandle),
    ClassMethod(Handle<Class<Unvalidated>>, NameHandle<Function<Unvalidated>>),
    ClassConstructor(Handle<Class<Unvalidated>>, ClassConstructor<Unvalidated>),
    ClassDestructor(Handle<Class<Unvalidated>>, ClassDestructor<Unvalidated>),
    Struct(StructType<Unvalidated>),
    StructField(StructType<Unvalidated>, Name),
    Enum(Handle<Enum<Unvalidated>>),
    EnumVariant(Handle<Enum<Unvalidated>>, Name),
    Interface(Handle<Interface<Unvalidated>>),
    InterfaceMethod(Handle<Interface<Unvalidated>>, Name),
}
Expand description

Validated doc reference

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Argument(Name)

Reference to an argument can only be used in docs for functions or callback methods

§

Class(ClassDeclarationHandle)

Reference a class

§

ClassMethod(Handle<Class<Unvalidated>>, NameHandle<Function<Unvalidated>>)

Reference a class method

§

ClassConstructor(Handle<Class<Unvalidated>>, ClassConstructor<Unvalidated>)

Reference to the class constructor

§

ClassDestructor(Handle<Class<Unvalidated>>, ClassDestructor<Unvalidated>)

Reference to the class destructor

§

Struct(StructType<Unvalidated>)

Reference a struct

§

StructField(StructType<Unvalidated>, Name)

Reference a field within a struct

Second parameter is the field name inside that struct

§

Enum(Handle<Enum<Unvalidated>>)

Reference an enum

§

EnumVariant(Handle<Enum<Unvalidated>>, Name)

Reference an enum variant

§

Interface(Handle<Interface<Unvalidated>>)

Reference an interface

§

InterfaceMethod(Handle<Interface<Unvalidated>>, Name)

Reference a method of a interface

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more