Enum rustdoc::passes::collect_intra_doc_links::UrlFragment [−][src]
pub(crate) enum UrlFragment {
Method(Symbol),
TyMethod(Symbol),
AssociatedConstant(Symbol),
AssociatedType(Symbol),
StructField(Symbol),
Variant(Symbol),
VariantField {
variant: Symbol,
field: Symbol,
},
UserWritten(String),
}Variants
Method(Symbol)
Tuple Fields
0: SymbolTyMethod(Symbol)
Tuple Fields
0: SymbolAssociatedConstant(Symbol)
Tuple Fields
0: SymbolAssociatedType(Symbol)
Tuple Fields
0: SymbolStructField(Symbol)
Tuple Fields
0: SymbolVariant(Symbol)
Tuple Fields
0: SymbolVariantField
UserWritten(String)
Tuple Fields
0: StringImplementations
Create a fragment for an associated item.
is_prototype is whether this associated item is a trait method
without a default definition.
Trait Implementations
Render the fragment, including the leading #.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for UrlFragment
impl Send for UrlFragment
impl Sync for UrlFragment
impl Unpin for UrlFragment
impl UnwindSafe for UrlFragment
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
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
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: 32 bytes
Size for each variant:
Method: 4 bytesTyMethod: 4 bytesAssociatedConstant: 4 bytesAssociatedType: 4 bytesStructField: 4 bytesVariant: 4 bytesVariantField: 8 bytesUserWritten: 28 bytes
