Skip to main content

Module tools

Module tools 

Source

Structs§

GitTool
GlobTool
GrepTool
ReadFileTool

Traits§

Tool

Functions§

all_tools
floor_char_boundary
Find a valid UTF-8 character boundary at or before the given position. This is a polyfill for str::floor_char_boundary which requires Rust 1.91.
is_binary_file
Check if a file is binary by reading the first 8 KiB and checking for null bytes. Returns true if binary, false if text, or an error if the file cannot be read.
reflect_tools
tool_definitions
Definitions in a stable order, sorted by map key (unique, unlike definition names).