Enum jsdoc::ast::Tag

source ·
#[non_exhaustive]
pub enum Tag {
Show 67 variants Yield(YieldTag), TypeDef(TypeDefTag), Throw(ThrowTag), Todo(TodoTag), Tutorial(TutorialTag), Static(StaticTag), Summary(SummaryTag), See(SeeTag), Since(SinceTag), Requires(RequiresTag), Override(OverrideTag), Package(PackageTag), Module(ModuleTag), Name(NameTag), Namespace(NamespaceTag), Variation(VariationTag), Version(VersionTag), MemberOf(MemberOfTag), Mixes(MixesTag), Mixin(MixinTag), Member(MemberTag), Listens(ListensTag), License(LicenseTag), Kind(KindTag), Lends(LendsTag), Instance(InstanceTag), Interface(InterfaceTag), Inner(InnerTag), InheritDoc(InheritDocTag), Ignore(IgnoreTag), HideConstructor(HideConstructorTag), Generator(GeneratorTag), Function(FunctionTag), File(FileTag), Constructs(ConstructsTag), Copyright(CopyrightTag), Abstract(AbstractTag), Access(AccessTag), Alias(AliasTag), Async(AsyncTag), Unknown(UnknownTag), Augments(AugmentsTag), Implements(ImplementsTag), Author(AuthorTag), Borrows(BorrowsTag), Class(ClassTag), ClassDesc(JSDocClassDescTag), Const(ConstTag), Public(PublicTag), Private(PrivateTag), Protected(ProtectedTag), Readonly(ReadonlyTag), Callback(CallbackTag), Enum(EnumTag), Parameter(ParameterTag), Return(ReturnTag), This(ThisTag), Type(TypeTag), Template(TemplateTag), Typedef(TypedefTag), Property(PropertyTag), Description(DescriptionTag), Example(ExampleTag), Exports(ExportsTag), External(ExternalTag), Default(DefaultTag), Deprecated(DeprecatedTag),
}

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.
§

Yield(YieldTag)

§

TypeDef(TypeDefTag)

§

Throw(ThrowTag)

§

Todo(TodoTag)

§

Tutorial(TutorialTag)

§

Static(StaticTag)

§

Summary(SummaryTag)

§

See(SeeTag)

§

Since(SinceTag)

§

Requires(RequiresTag)

§

Override(OverrideTag)

§

Package(PackageTag)

§

Module(ModuleTag)

§

Name(NameTag)

§

Namespace(NamespaceTag)

§

Variation(VariationTag)

§

Version(VersionTag)

§

MemberOf(MemberOfTag)

§

Mixes(MixesTag)

§

Mixin(MixinTag)

§

Member(MemberTag)

§

Listens(ListensTag)

§

License(LicenseTag)

§

Kind(KindTag)

§

Lends(LendsTag)

§

Instance(InstanceTag)

§

Interface(InterfaceTag)

§

Inner(InnerTag)

§

InheritDoc(InheritDocTag)

§

Ignore(IgnoreTag)

§

HideConstructor(HideConstructorTag)

§

Generator(GeneratorTag)

§

Function(FunctionTag)

§

File(FileTag)

§

Constructs(ConstructsTag)

§

Copyright(CopyrightTag)

§

Abstract(AbstractTag)

§

Access(AccessTag)

§

Alias(AliasTag)

§

Async(AsyncTag)

§

Unknown(UnknownTag)

§

Augments(AugmentsTag)

§

Implements(ImplementsTag)

§

Author(AuthorTag)

§

Borrows(BorrowsTag)

§

Class(ClassTag)

§

ClassDesc(JSDocClassDescTag)

§

Const(ConstTag)

§

Public(PublicTag)

§

Private(PrivateTag)

§

Protected(ProtectedTag)

§

Readonly(ReadonlyTag)

§

Callback(CallbackTag)

§

Enum(EnumTag)

§

Parameter(ParameterTag)

§

Return(ReturnTag)

§

This(ThisTag)

§

Type(TypeTag)

§

Template(TemplateTag)

§

Typedef(TypedefTag)

§

Property(PropertyTag)

§

Description(DescriptionTag)

§

Example(ExampleTag)

§

Exports(ExportsTag)

§

External(ExternalTag)

§

Default(DefaultTag)

§

Deprecated(DeprecatedTag)

Trait Implementations§

source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy 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 Tag

source§

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

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

impl From<AbstractTag> for Tag

source§

fn from(v: AbstractTag) -> Self

Converts to this type from the input type.
source§

impl From<AccessTag> for Tag

source§

fn from(v: AccessTag) -> Self

Converts to this type from the input type.
source§

impl From<AliasTag> for Tag

source§

fn from(v: AliasTag) -> Self

Converts to this type from the input type.
source§

impl From<AsyncTag> for Tag

source§

fn from(v: AsyncTag) -> Self

Converts to this type from the input type.
source§

impl From<AugmentsTag> for Tag

source§

fn from(v: AugmentsTag) -> Self

Converts to this type from the input type.
source§

impl From<AuthorTag> for Tag

source§

fn from(v: AuthorTag) -> Self

Converts to this type from the input type.
source§

impl From<BorrowsTag> for Tag

source§

fn from(v: BorrowsTag) -> Self

Converts to this type from the input type.
source§

impl From<CallbackTag> for Tag

source§

fn from(v: CallbackTag) -> Self

Converts to this type from the input type.
source§

impl From<ClassTag> for Tag

source§

fn from(v: ClassTag) -> Self

Converts to this type from the input type.
source§

impl From<ConstTag> for Tag

source§

fn from(v: ConstTag) -> Self

Converts to this type from the input type.
source§

impl From<ConstructsTag> for Tag

source§

fn from(v: ConstructsTag) -> Self

Converts to this type from the input type.
source§

impl From<CopyrightTag> for Tag

source§

fn from(v: CopyrightTag) -> Self

Converts to this type from the input type.
source§

impl From<DefaultTag> for Tag

source§

fn from(v: DefaultTag) -> Self

Converts to this type from the input type.
source§

impl From<DeprecatedTag> for Tag

source§

fn from(v: DeprecatedTag) -> Self

Converts to this type from the input type.
source§

impl From<DescriptionTag> for Tag

source§

fn from(v: DescriptionTag) -> Self

Converts to this type from the input type.
source§

impl From<EnumTag> for Tag

source§

fn from(v: EnumTag) -> Self

Converts to this type from the input type.
source§

impl From<ExampleTag> for Tag

source§

fn from(v: ExampleTag) -> Self

Converts to this type from the input type.
source§

impl From<ExportsTag> for Tag

source§

fn from(v: ExportsTag) -> Self

Converts to this type from the input type.
source§

impl From<ExternalTag> for Tag

source§

fn from(v: ExternalTag) -> Self

Converts to this type from the input type.
source§

impl From<FileTag> for Tag

source§

fn from(v: FileTag) -> Self

Converts to this type from the input type.
source§

impl From<FunctionTag> for Tag

source§

fn from(v: FunctionTag) -> Self

Converts to this type from the input type.
source§

impl From<GeneratorTag> for Tag

source§

fn from(v: GeneratorTag) -> Self

Converts to this type from the input type.
source§

impl From<HideConstructorTag> for Tag

source§

fn from(v: HideConstructorTag) -> Self

Converts to this type from the input type.
source§

impl From<IgnoreTag> for Tag

source§

fn from(v: IgnoreTag) -> Self

Converts to this type from the input type.
source§

impl From<ImplementsTag> for Tag

source§

fn from(v: ImplementsTag) -> Self

Converts to this type from the input type.
source§

impl From<InheritDocTag> for Tag

source§

fn from(v: InheritDocTag) -> Self

Converts to this type from the input type.
source§

impl From<InnerTag> for Tag

source§

fn from(v: InnerTag) -> Self

Converts to this type from the input type.
source§

impl From<InstanceTag> for Tag

source§

fn from(v: InstanceTag) -> Self

Converts to this type from the input type.
source§

impl From<InterfaceTag> for Tag

source§

fn from(v: InterfaceTag) -> Self

Converts to this type from the input type.
source§

impl From<JSDocClassDescTag> for Tag

source§

fn from(v: JSDocClassDescTag) -> Self

Converts to this type from the input type.
source§

impl From<KindTag> for Tag

source§

fn from(v: KindTag) -> Self

Converts to this type from the input type.
source§

impl From<LendsTag> for Tag

source§

fn from(v: LendsTag) -> Self

Converts to this type from the input type.
source§

impl From<LicenseTag> for Tag

source§

fn from(v: LicenseTag) -> Self

Converts to this type from the input type.
source§

impl From<ListensTag> for Tag

source§

fn from(v: ListensTag) -> Self

Converts to this type from the input type.
source§

impl From<MemberOfTag> for Tag

source§

fn from(v: MemberOfTag) -> Self

Converts to this type from the input type.
source§

impl From<MemberTag> for Tag

source§

fn from(v: MemberTag) -> Self

Converts to this type from the input type.
source§

impl From<MixesTag> for Tag

source§

fn from(v: MixesTag) -> Self

Converts to this type from the input type.
source§

impl From<MixinTag> for Tag

source§

fn from(v: MixinTag) -> Self

Converts to this type from the input type.
source§

impl From<ModuleTag> for Tag

source§

fn from(v: ModuleTag) -> Self

Converts to this type from the input type.
source§

impl From<NameTag> for Tag

source§

fn from(v: NameTag) -> Self

Converts to this type from the input type.
source§

impl From<NamespaceTag> for Tag

source§

fn from(v: NamespaceTag) -> Self

Converts to this type from the input type.
source§

impl From<OverrideTag> for Tag

source§

fn from(v: OverrideTag) -> Self

Converts to this type from the input type.
source§

impl From<PackageTag> for Tag

source§

fn from(v: PackageTag) -> Self

Converts to this type from the input type.
source§

impl From<ParameterTag> for Tag

source§

fn from(v: ParameterTag) -> Self

Converts to this type from the input type.
source§

impl From<PrivateTag> for Tag

source§

fn from(v: PrivateTag) -> Self

Converts to this type from the input type.
source§

impl From<PropertyTag> for Tag

source§

fn from(v: PropertyTag) -> Self

Converts to this type from the input type.
source§

impl From<ProtectedTag> for Tag

source§

fn from(v: ProtectedTag) -> Self

Converts to this type from the input type.
source§

impl From<PublicTag> for Tag

source§

fn from(v: PublicTag) -> Self

Converts to this type from the input type.
source§

impl From<ReadonlyTag> for Tag

source§

fn from(v: ReadonlyTag) -> Self

Converts to this type from the input type.
source§

impl From<RequiresTag> for Tag

source§

fn from(v: RequiresTag) -> Self

Converts to this type from the input type.
source§

impl From<ReturnTag> for Tag

source§

fn from(v: ReturnTag) -> Self

Converts to this type from the input type.
source§

impl From<SeeTag> for Tag

source§

fn from(v: SeeTag) -> Self

Converts to this type from the input type.
source§

impl From<SinceTag> for Tag

source§

fn from(v: SinceTag) -> Self

Converts to this type from the input type.
source§

impl From<StaticTag> for Tag

source§

fn from(v: StaticTag) -> Self

Converts to this type from the input type.
source§

impl From<SummaryTag> for Tag

source§

fn from(v: SummaryTag) -> Self

Converts to this type from the input type.
source§

impl From<TemplateTag> for Tag

source§

fn from(v: TemplateTag) -> Self

Converts to this type from the input type.
source§

impl From<ThisTag> for Tag

source§

fn from(v: ThisTag) -> Self

Converts to this type from the input type.
source§

impl From<ThrowTag> for Tag

source§

fn from(v: ThrowTag) -> Self

Converts to this type from the input type.
source§

impl From<TodoTag> for Tag

source§

fn from(v: TodoTag) -> Self

Converts to this type from the input type.
source§

impl From<TutorialTag> for Tag

source§

fn from(v: TutorialTag) -> Self

Converts to this type from the input type.
source§

impl From<TypeDefTag> for Tag

source§

fn from(v: TypeDefTag) -> Self

Converts to this type from the input type.
source§

impl From<TypeTag> for Tag

source§

fn from(v: TypeTag) -> Self

Converts to this type from the input type.
source§

impl From<TypedefTag> for Tag

source§

fn from(v: TypedefTag) -> Self

Converts to this type from the input type.
source§

impl From<UnknownTag> for Tag

source§

fn from(v: UnknownTag) -> Self

Converts to this type from the input type.
source§

impl From<VariationTag> for Tag

source§

fn from(v: VariationTag) -> Self

Converts to this type from the input type.
source§

impl From<VersionTag> for Tag

source§

fn from(v: VersionTag) -> Self

Converts to this type from the input type.
source§

impl From<YieldTag> for Tag

source§

fn from(v: YieldTag) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Tag

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Spanned for Tag

source§

fn span(&self) -> Span

Get span of self.
source§

fn span_lo(&self) -> BytePos

source§

fn span_hi(&self) -> BytePos

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

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> 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

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

§

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>,

§

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>,

§

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
source§

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

source§

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