Skip to main content

Crate rustdoc_ir

Crate rustdoc_ir 

Source

Re-exports§

pub use function_pointer::FunctionPointer;
pub use function_pointer::FunctionPointerInput;

Modules§

function_pointer

Structs§

Array
A Rust fixed-size array—e.g. [u8; 4].
CallableInput
A named input parameter of a Callable.
CanonicalType
A Type with canonicalized names for lifetimes and unassigned generic type parameters.
ConstGenericArgument
A const generic argument with a concrete evaluated value, e.g. 8 in Size<8>.
EnumVariantConstructorPath
EnumVariantInit
FnHeader
Fields specific to callables that use function-call syntax.
FreeFunction
FreeFunctionPath
Generic
An unassigned generic parameter—e.g. T in fn foo<T>(t: T).
InherentMethod
InherentMethodPath
NamedLifetime
A named lifetime (without leading '). Cannot be "_" or "static".
NoOpResolver
A resolver that never rewrites paths. Intended for tests and for the rare call sites that genuinely have no CrateCollection available.
PathType
A named type identified by its fully-qualified path—e.g. std::vec::Vec<u32>.
RawPointer
A Rust raw pointer—e.g. *const u8 or *mut Vec<u8>.
RustIdentifier
A valid Rust identifier.
Slice
A Rust slice—e.g. [u16].
StructLiteralInit
StructLiteralPath
TraitMethod
TraitMethodPath
Tuple
A Rust tuple—e.g. (u8, u16, u32).
TypeReference
A Rust reference—e.g. &mut u32 or &'static mut Vec<u8>.
UnknownPrimitive
Error returned when trying to convert an unrecognized string into a ScalarPrimitive.

Enums§

Callable
A Rust type that can be invoked—e.g. a function, a method, a struct literal constructor.
GenericArgument
A single generic argument supplied to a generic type or function.
GenericLifetimeParameter
A lifetime used as a generic argument—e.g. 'a in Cow<'a, str>.
Lifetime
ScalarPrimitive
A Rust scalar primitive type (e.g. u32, bool, str).
Type
A Rust type.

Traits§

CanonicalPathResolver
Resolves a GlobalItemId to the canonical shortest importable path for that item.