pub enum Target {
Show 34 variants ExternCrate, Use, Static, Const, Fn, Closure, Mod, ForeignMod, GlobalAsm, TyAlias, OpaqueTy, ImplTraitPlaceholder, Enum, Variant, Struct, Field, Union, Trait, TraitAlias, Impl, Expression, Statement, Arm, AssocConst, Method(MethodKind), AssocTy, ForeignFn, ForeignStatic, ForeignTy, GenericParam(GenericParamKind), MacroDef, Param, PatField, ExprField,
}

Variants

ExternCrate

Use

Static

Const

Fn

Closure

Mod

ForeignMod

GlobalAsm

TyAlias

OpaqueTy

ImplTraitPlaceholder

Enum

Variant

Struct

Field

Union

Trait

TraitAlias

Impl

Expression

Statement

Arm

AssocConst

Method(MethodKind)

AssocTy

ForeignFn

ForeignStatic

ForeignTy

GenericParam(GenericParamKind)

MacroDef

Param

PatField

ExprField

Implementations

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
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.

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
Converts the given value to a String. 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.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 2 bytes

Size for each variant:

  • ExternCrate: 0 bytes
  • Use: 0 bytes
  • Static: 0 bytes
  • Const: 0 bytes
  • Fn: 0 bytes
  • Closure: 0 bytes
  • Mod: 0 bytes
  • ForeignMod: 0 bytes
  • GlobalAsm: 0 bytes
  • TyAlias: 0 bytes
  • OpaqueTy: 0 bytes
  • ImplTraitPlaceholder: 0 bytes
  • Enum: 0 bytes
  • Variant: 0 bytes
  • Struct: 0 bytes
  • Field: 0 bytes
  • Union: 0 bytes
  • Trait: 0 bytes
  • TraitAlias: 0 bytes
  • Impl: 0 bytes
  • Expression: 0 bytes
  • Statement: 0 bytes
  • Arm: 0 bytes
  • AssocConst: 0 bytes
  • Method: 1 byte
  • AssocTy: 0 bytes
  • ForeignFn: 0 bytes
  • ForeignStatic: 0 bytes
  • ForeignTy: 0 bytes
  • GenericParam: 1 byte
  • MacroDef: 0 bytes
  • Param: 0 bytes
  • PatField: 0 bytes
  • ExprField: 0 bytes