Module encoder

Source

MacrosΒ§

empty_proc_macro πŸ”’
If the current crate is a proc-macro, returns early with LazyArray::default(). This is useful for skipping the encoding of things that aren’t needed for proc-macro crates.
encoder_methods πŸ”’
record πŸ”’
record_array πŸ”’
record_defaulted_array πŸ”’

StructsΒ§

AnalyzeAttrState πŸ”’
EncodeContext πŸ”’
EncodedMetadata

FunctionsΒ§

analyze_attr πŸ”’
Returns whether an attribute needs to be recorded in metadata, that is, if it’s usable and useful in downstream crates. Local-only attributes are an obvious example, but some rustdoc-specific attributes can equally be of use while documenting the current crate only.
bytes_needed πŸ”’
encode_metadata
encode_root_position πŸ”’
prefetch_mir πŸ”’
Used to prefetch queries which will be needed later by metadata encoding. Only a subset of the queries are actually prefetched to keep this code smaller.
provide πŸ”’
rendered_const
Build a textual representation of an unevaluated constant expression.
should_encode_attrs πŸ”’
should_encode_const πŸ”’
should_encode_constness πŸ”’
should_encode_expn_that_defined πŸ”’
should_encode_fn_impl_trait_in_trait πŸ”’
should_encode_fn_sig πŸ”’
should_encode_generics πŸ”’
should_encode_mir πŸ”’
Whether we should encode MIR. Return a pair, resp. for CTFE and for LLVM.
should_encode_span πŸ”’
should_encode_stability πŸ”’
should_encode_type πŸ”’
should_encode_variances πŸ”’
should_encode_visibility πŸ”’