Module paths

Source
Expand description

This module contains paths to types and functions Clippy needs to know about.

Whenever possible, please consider diagnostic items over hardcoded paths. See https://github.com/rust-lang/rust-clippy/issues/5393 for more information.

Macrosยง

path_macros ๐Ÿ”’

Structsยง

PathLookup
Lazily resolves a path into a list of DefIds using lookup_path.

Enumsยง

PathNS
Specifies whether to resolve a path in the TypeNS, ValueNS, MacroNS or in an arbitrary namespace

Staticsยง

ALIGN_OF
CHAR_TO_DIGIT
CONCAT
FUTURES_IO_ASYNCREADEXT
FUTURES_IO_ASYNCWRITEEXT
IO_ERRORKIND_OTHER_CTOR
IO_ERROR_NEW
ITERTOOLS_NEXT_TUPLE
ITER_STEP
LAZY_STATIC
ONCE_CELL_SYNC_LAZY
ONCE_CELL_SYNC_LAZY_NEW
PARKING_LOT_GUARDS
REGEX_BUILDER_NEW
REGEX_BYTES_BUILDER_NEW
REGEX_BYTES_NEW
REGEX_BYTES_SET_NEW
REGEX_NEW
REGEX_SET_NEW
SERDE_DESERIALIZE
SERDE_DE_VISITOR
SLICE_FROM_REF
TOKIO_FILE_OPTIONS
TOKIO_IO_ASYNCREADEXT
TOKIO_IO_ASYNCWRITEEXT
TOKIO_IO_OPEN_OPTIONS
TOKIO_IO_OPEN_OPTIONS_NEW

Functionsยง

find_crates
Finds the crates called name, may be multiple due to multiple major versions.
find_primitive_impls ๐Ÿ”’
item_child_by_name ๐Ÿ”’
local_item_child_by_name ๐Ÿ”’
lookup_path
Resolves a def path like std::vec::Vec.
lookup_path_str
Equivalent to a lookup_path after splitting the input string on ::
lookup_with_base ๐Ÿ”’
Resolves a def path like vec::Vec with the base std.
non_local_item_child_by_name ๐Ÿ”’