Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
Function
never_satisfied_results_depend_on_inferable
()
crates/ty_python_semantic/src/types/constraints.rs:6208
Method
new
Splice `replacement` into the [`Snippet`] at the specified byte span <div class="warning"> Text passed to this function is considered "untrusted inp
crates/ruff_annotate_snippets/src/snippet.rs:477
Method
new
(complete: &str, patches: &[TrimmedPatch<'_>], sm: &SourceMap<'_>)
crates/ruff_annotate_snippets/src/renderer/render.rs:2544
Method
new
( whitespace_left: usize, span_left: usize, span_right: usize, label_right: us
crates/ruff_annotate_snippets/src/renderer/margin.rs:27
Method
new
(source: &'a str, line_start: usize)
crates/ruff_annotate_snippets/src/renderer/source_map.rs:17
Method
new
(ch: char, style: ElementStyle)
crates/ruff_annotate_snippets/src/renderer/styled_buffer.rs:27
Method
new
(include: IncludeFilter, exclude: ExcludeFilter)
crates/ty_project/src/glob.rs:27
Method
new
Creates a project with the given name and root that uses the default options.
crates/ty_project/src/metadata.rs:78
Method
new
( project_metadata: ProjectMetadata, system: S, strategy: &Strategy, )
crates/ty_project/src/db.rs:160
Method
new
(path: impl AsRef<SystemPath>, source: ValueSource)
crates/ty_project/src/metadata/value.rs:39
Method
new
Create a validated, normalized package name.
crates/ty_project/src/metadata/pyproject.rs:205
Method
new
(id: DiagnosticId, message: String, severity: Severity)
crates/ty_project/src/metadata/options.rs:2503
Method
new
()
crates/ty_project/src/glob/exclude.rs:75
Method
new
()
crates/ty_project/src/glob/include.rs:184
Method
new
Create a new project watcher.
crates/ty_project/src/watch/project_watcher.rs:34
Method
new
(system: &dyn System)
crates/ty_project/src/uv/command.rs:19
Method
new
(results_sender: Sender<UvMetadataResult>, wake_sender: Sender<()>)
crates/ty_project/src/uv/service.rs:50
Method
new
(use_uv: UseUv)
crates/ty_project/src/uv/environments.rs:116
Method
new
()
crates/ty_project/src/uv/metadata/string_interner.rs:24
Method
new
(verbosity: VerbosityLevel, no_progress: bool)
crates/ty/src/printer.rs:15
Method
new
(mode: MainLoopMode, printer: Printer)
crates/ty/src/lib.rs:322
Method
new
()
crates/ty/tests/common/mod.rs:23
Method
new
(content: &'src str, index: &'index LineIndex)
crates/ruff_source_file/src/lib.rs:30
Method
new
Creates a non-zero if the given value is not zero.
crates/ruff_source_file/src/line_index.rs:586
Method
new
(text: &'a str, offset: TextSize)
crates/ruff_source_file/src/newlines.rs:206
Method
new
(source: &'a [u8], layout: EscapeLayout)
crates/ruff_python_literal/src/escape.rs:483
Method
new
()
crates/ruff_python_semantic/src/globals.rs:65
Method
new
( typing_modules: &'a [String], custom_builtins: &'a [String], target_version: PythonV
crates/ruff_python_semantic/src/model.rs:208
Method
new
Initialize a new [`DunderAllDefinition`] instance.
crates/ruff_python_semantic/src/model/all.rs:57
Method
new
(cfg: ControlFlowGraph<'stmt>, source: &'stmt str)
crates/ruff_python_semantic/src/cfg/visualize.rs:163
Method
new
(client_capabilities: &ClientCapabilities)
crates/ty_server/src/capabilities.rs:216
Method
new
( worker_threads: NonZeroUsize, connection: Connection, native_system: Arc<dyn System
crates/ty_server/src/server.rs:45
Method
new
( resolved_client_capabilities: ResolvedClientCapabilities, position_encoding: PositionEncodin
crates/ty_server/src/session.rs:169
Method
new
( index: Arc<Index>, native_system: Arc<dyn System + 'static + Send + Sync + RefUnwindSafe>,
crates/ty_server/src/system.rs:92
Method
new
()
crates/ty_server/src/session/request_queue.rs:17
Method
new
()
crates/ty_server/src/session/index.rs:19
Method
new
(main_loop_sender: MainLoopSender, client_sender: ConnectionSender)
crates/ty_server/src/session/client.rs:20
Method
new
(capabilities: ResolvedClientCapabilities)
crates/ty_server/src/session/file_watcher.rs:67
Method
new
( uri: Uri, contents: String, version: DocumentVersion, language_id: LanguageK
crates/ty_server/src/document/text_document.rs:52
Method
new
( uri: lsp_types::Uri, notebook_version: DocumentVersion, cells: Vec<lsp_types::Notebo
crates/ty_server/src/document/notebook.rs:43
Method
new
( client: &Client, request_token: Option<ProgressToken>, title: &str, capabili
crates/ty_server/src/server/lazy_work_done_progress.rs:50
Method
new
(err: anyhow::Error, code: server::ErrorCode)
crates/ty_server/src/server/api.rs:589
Method
new
(worker_threads: NonZeroUsize)
crates/ty_server/src/server/schedule.rs:39
Method
new
(work_done: LazyWorkDoneProgress, response: ResponseWriter<'a>)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:234
Method
new
(priority: ThreadPriority)
crates/ty_server/src/server/schedule/thread.rs:41
Method
new
(threads: NonZeroUsize)
crates/ty_server/src/server/schedule/thread/pool.rs:47
Method
new
Create a new test server with the given workspace configurations
crates/ty_server/tests/e2e/main.rs:226
Method
new
(name: &str)
crates/ty_module_resolver/src/module_name.rs:34
Method
new
( db: &'db dyn Db, resolver_environment: ResolverEnvironment<'db>, mode: ModuleResolve
crates/ty_module_resolver/src/resolve.rs:1852
Method
new
()
crates/ty_module_resolver/src/db.rs:34
Method
new
Creates a new empty builder.
crates/ty_module_resolver/src/module_glob.rs:144
Method
new
(src_roots: Vec<SystemPathBuf>)
crates/ty_module_resolver/src/settings.rs:38
Method
new
( context: &ResolverContext<'db>, path: ModulePath, enumeration_allowed: Option<bool>,
crates/ty_module_resolver/src/path.rs:278
Method
new
()
crates/ty_module_resolver/src/testing.rs:185
Method
new
(db: &dyn Db, candidate: &ModuleResolutionCandidate<'_>)
crates/ty_module_resolver/src/resolve/search.rs:526
Method
new
(text: &'a str)
crates/ruff_formatter/src/source_code.rs:12
Method
new
(value: NonZeroU32, debug_name: &'static str)
crates/ruff_formatter/src/group_id.rs:14
Method
new
(state: &'a mut FormatState<Context>)
crates/ruff_formatter/src/buffer.rs:178
Method
new
(mode: LineMode)
crates/ruff_formatter/src/builders.rs:200
Method
new
(options: SimpleFormatOptions)
crates/ruff_formatter/src/lib.rs:226
Method
new
Creates a new context that uses the given formatter context
crates/ruff_formatter/src/formatter.rs:15
Method
new
(value: &'fmt F)
crates/ruff_formatter/src/arguments.rs:20
Method
new
(inner: F)
crates/ruff_formatter/src/format_extensions.rs:79
Method
new
(content: Vec<FormatElement>)
crates/ruff_formatter/src/format_element.rs:158
Method
new
(indent: Indentation)
crates/ruff_formatter/src/printer/call_stack.rs:35
Method
new
(source_code: SourceCode<'a>, options: PrinterOptions)
crates/ruff_formatter/src/printer/mod.rs:42
Method
new
(original: &'a [T])
crates/ruff_formatter/src/printer/stack.rs:39
Method
new
(slice: &'a [FormatElement])
crates/ruff_formatter/src/printer/queue.rs:67
Method
new
(width: u16)
crates/ruff_formatter/src/printer/printer_options/mod.rs:65
Method
new
(source_code: SourceCode<'a>)
crates/ruff_formatter/src/format_element/document.rs:210
Method
new
()
crates/ruff_formatter/src/format_element/tag.rs:204
Method
new
(source: TextSize, dest: TextSize)
crates/ruff_diagnostics/src/source_map.rs:16
Method
new
(project: RealWorldProject<'a>)
crates/ruff_benchmark/benches/ty.rs:2742
Method
new
Creates the selected layout and records its expected modules and matching symbols.
crates/ruff_benchmark/benches/ty_ide.rs:160
Method
new
(project: RealWorldProject<'a>)
crates/ruff_benchmark/benches/ty_walltime.rs:23
Method
new
(name: &'static str, code: &'static str)
crates/ruff_benchmark/src/lib.rs:47
Method
new
Create a new task for the Python project at `project_path`. `truth` should correspond to the completion configuration and the expected answer for com
crates/ty_completion_eval/src/main.rs:271
Method
new
(f: &'fmt mut PyFormatter<'ast, 'buf, 'state>, sequence_end: TextSize)
crates/ruff_python_formatter/src/builders.rs:137
Method
new
(range: TextRange, context: &'a PyFormatContext<'ast>)
crates/ruff_python_formatter/src/range.rs:181
Method
new
(tokens: Iter<'a, AstToken>, verbatim_range: TextRange)
crates/ruff_python_formatter/src/verbatim.rs:817
Method
new
( options: PyFormatOptions, contents: &'a str, comments: Comments<'a>, trivia:
crates/ruff_python_formatter/src/context.rs:37
Method
new
( expression_comments: &LeadingDanglingTrailingComments<'a>, statement: AnyNodeRef<'a>,
crates/ruff_python_formatter/src/statement/stmt_assign.rs:1159
Method
new
(context: &'input PyFormatContext)
crates/ruff_python_formatter/src/expression/mod.rs:614
Method
new
(index: usize)
crates/ruff_python_formatter/src/expression/binary_like.rs:1045
Method
new
(item: &'a DictItem)
crates/ruff_python_formatter/src/expression/expr_dict.rs:84
Method
new
(expr: &'a ExprTuple)
crates/ruff_python_formatter/src/expression/expr_tuple.rs:212
Method
new
Looks for a valid doctest PS1 prompt in the line given. If one was found, then state for a new doctest code example is returned, along with the code
crates/ruff_python_formatter/src/string/docstring.rs:881
Method
new
(input: &'str str, start_offset: usize)
crates/ruff_python_formatter/src/string/normalize.rs:776
Method
new
(string: impl Into<StringLike<'a>>)
crates/ruff_python_formatter/src/string/implicit.rs:36
Method
new
(flags: AnyStringFlags, layout: InterpolatedStringLayout)
crates/ruff_python_formatter/src/other/interpolated_string.rs:13
Method
new
(identifier: &'a Identifier)
crates/ruff_python_formatter/src/other/identifier.rs:52
Method
new
( element: &'a InterpolatedStringElement, context: InterpolatedStringContext, )
crates/ruff_python_formatter/src/other/interpolated_string_element.rs:31
Method
new
(slice: SourceCodeSlice, position: CommentLinePosition)
crates/ruff_python_formatter/src/comments/mod.rs:127
Method
new
(comment: &'a SourceComment, source_code: SourceCode<'a>)
crates/ruff_python_formatter/src/comments/debug.rs:18
Method
new
( source_code: SourceCode<'a>, comment_ranges: &'a CommentRanges, builder: &'builder m
crates/ruff_python_formatter/src/comments/visitor.rs:40
Method
new
()
crates/ruff_python_formatter/src/comments/map.rs:63
Method
new
(title: &'a str)
crates/ruff_python_formatter/tests/fixtures.rs:530
Method
new
()
crates/ruff_unicode_names2_generator/src/trie.rs:10
Method
new
()
crates/ruff_db/src/lib.rs:154
Method
new
(value: u128)
crates/ruff_db/src/file_revision.rs:17
← previous
next →
25,301–25,400 of 31,562, ranked by callers