Command

Enum Command 

Source
pub enum Command {
Show 13 variants Index { path: PathBuf, force: bool, languages: Vec<String>, quiet: bool, command: Option<IndexSubcommand>, }, Query {
Show 25 fields pattern: Option<String>, symbols: bool, lang: Option<String>, kind: Option<String>, ast: bool, regex: bool, json: bool, pretty: bool, ai: bool, limit: Option<usize>, offset: Option<usize>, expand: bool, file: Option<String>, exact: bool, contains: bool, count: bool, timeout: u64, plain: bool, glob: Vec<String>, exclude: Vec<String>, paths: bool, no_truncate: bool, all: bool, force: bool, dependencies: bool,
}, Serve { port: u16, host: String, }, Stats { json: bool, pretty: bool, }, Clear { yes: bool, }, ListFiles { json: bool, pretty: bool, }, Watch { path: PathBuf, debounce: u64, quiet: bool, }, Mcp, Analyze {
Show 19 fields circular: bool, hotspots: bool, min_dependents: usize, unused: bool, islands: bool, min_island_size: usize, max_island_size: Option<usize>, format: String, json: bool, pretty: bool, count: bool, all: bool, plain: bool, glob: Vec<String>, exclude: Vec<String>, force: bool, limit: Option<usize>, offset: Option<usize>, sort: Option<String>,
}, Deps { file: PathBuf, reverse: bool, depth: usize, format: String, json: bool, pretty: bool, }, Ask {
Show 16 fields question: Option<String>, execute: bool, provider: Option<String>, json: bool, pretty: bool, additional_context: Option<String>, configure: bool, agentic: bool, max_iterations: usize, no_eval: bool, show_reasoning: bool, verbose: bool, quiet: bool, answer: bool, interactive: bool, debug: bool,
}, Context { structure: bool, path: Option<String>, file_types: bool, project_type: bool, framework: bool, entry_points: bool, test_layout: bool, config_files: bool, depth: usize, json: bool, }, IndexSymbolsInternal { cache_dir: PathBuf, },
}

Variants§

§

Index

Build or update the local code index

Fields

§path: PathBuf

Directory to index (defaults to current directory)

§force: bool

Force full rebuild (ignore incremental cache)

§languages: Vec<String>

Languages to include (empty = all)

§quiet: bool

Suppress all output (no progress bar, no summary)

§command: Option<IndexSubcommand>

Subcommand (status, compact)

§

Query

Query the code index

If no pattern is provided, launches interactive mode (TUI).

Search modes:

  • Default: Word-boundary matching (precise, finds complete identifiers) Example: rfx query “Error” → finds “Error” but not “NetworkError” Example: rfx query “test” → finds “test” but not “test_helper”

  • Symbol search: Word-boundary for text, exact match for symbols Example: rfx query “parse” –symbols → finds only “parse” function/class Example: rfx query “parse” –kind function → finds only “parse” functions

  • Substring search: Expansive matching (opt-in with –contains) Example: rfx query “mb” –contains → finds “mb”, “kmb_dai_ops”, “symbol”, etc.

  • Regex search: Pattern-controlled matching (opt-in with –regex) Example: rfx query “^mb_.*” –regex → finds “mb_init”, “mb_start”, etc.

Interactive mode:

  • Launch with: rfx query
  • Search, filter, and navigate code results in a live TUI
  • Press ‘?’ for help, ‘q’ to quit

Fields

§pattern: Option<String>

Search pattern (omit to launch interactive mode)

§symbols: bool

Search symbol definitions only (functions, classes, etc.)

§lang: Option<String>

Filter by language Supported: rust, python, javascript, typescript, vue, svelte, go, java, php, c, c++, c#, ruby, kotlin, zig

§kind: Option<String>

Filter by symbol kind (implies –symbols) Supported: function, class, struct, enum, interface, trait, constant, variable, method, module, namespace, type, macro, property, event, import, export, attribute

§ast: bool

Use AST pattern matching (SLOW: 500ms-2s+, scans all files)

WARNING: AST queries bypass trigram optimization and scan the entire codebase. In 95% of cases, use –symbols instead which is 10-100x faster.

When –ast is set, the pattern parameter is interpreted as a Tree-sitter S-expression query instead of text search.

RECOMMENDED: Always use –glob to limit scope for better performance.

Examples: Fast (2-50ms): rfx query “fetch” –symbols –kind function –lang python Slow (500ms-2s): rfx query “(function_definition) @fn” –ast –lang python Faster with glob: rfx query “(class_declaration) @class” –ast –lang typescript –glob “src/**/*.ts”

§regex: bool

Use regex pattern matching

Enables standard regex syntax in the search pattern: | for alternation (OR) - NO backslash needed . matches any character .* matches zero or more characters ^ anchors to start of line $ anchors to end of line

Examples: –regex “belongsTo|hasMany” Match belongsTo OR hasMany –regex “^import.*from” Lines starting with import…from –regex “fn.*test” Functions containing ‘test’

Note: Cannot be combined with –contains (mutually exclusive)

§json: bool

Output format as JSON

§pretty: bool

Pretty-print JSON output (only with –json) By default, JSON is minified to reduce token usage

§ai: bool

AI-optimized mode: returns JSON with ai_instruction field Implies –json (minified by default, use –pretty for formatted output) Provides context-aware guidance to AI agents on response format and next actions

§limit: Option<usize>

Maximum number of results

§offset: Option<usize>

Pagination offset (skip first N results after sorting) Use with –limit for pagination: –offset 0 –limit 10, then –offset 10 –limit 10

§expand: bool

Show full symbol definition (entire function/class body) Only applicable to symbol searches

§file: Option<String>

Filter by file path (supports substring matching) Example: –file math.rs or –file helpers/

§exact: bool

Exact symbol name match (no substring matching) Only applicable to symbol searches

§contains: bool

Use substring matching for both text and symbols (expansive search)

Default behavior uses word-boundary matching for precision: “Error” matches “Error” but not “NetworkError”

With –contains, enables substring matching (expansive): “Error” matches “Error”, “NetworkError”, “error_handler”, etc.

Use cases:

  • Finding partial matches: –contains “partial”
  • When you’re unsure of exact names
  • Exploratory searches

Note: Cannot be combined with –regex or –exact (mutually exclusive)

§count: bool

Only show count and timing, not the actual results

§timeout: u64

Query timeout in seconds (0 = no timeout, default: 30)

§plain: bool

Use plain text output (disable colors and syntax highlighting)

§glob: Vec<String>

Include files matching glob pattern (can be repeated)

Pattern syntax (NO shell quotes in the pattern itself): ** = recursive match (all subdirectories)

  • = single level match (one directory)

Examples: –glob src//.rs All .rs files under src/ (recursive) –glob app/Models/.php PHP files directly in Models/ (not subdirs) –glob tests//*_test.go All test files under tests/

Tip: Use –file for simple substring matching instead: –file User.php Simpler than –glob **/User.php

§exclude: Vec<String>

Exclude files matching glob pattern (can be repeated)

Same syntax as –glob (** for recursive, * for single level)

Examples: –exclude target/** Exclude all files under target/ –exclude /*.gen.rs Exclude generated Rust files –exclude node_modules/ Exclude npm dependencies

§paths: bool

Return only unique file paths (no line numbers or content) Compatible with –json to output [“path1”, “path2”, …]

§no_truncate: bool

Disable smart preview truncation (show full lines) By default, previews are truncated to ~100 chars to reduce token usage

§all: bool

Return all results (no limit) Equivalent to –limit 0, convenience flag for getting unlimited results

§force: bool

Force execution of potentially expensive queries Bypasses broad query detection that prevents queries with: • Short patterns (< 3 characters) • High candidate counts (> 5,000 files for symbol/AST queries) • AST queries without –glob restrictions

§dependencies: bool

Include dependency information (imports) in results Currently only available for Rust files

§

Serve

Start a local HTTP API server

Fields

§port: u16

Port to listen on

§host: String

Host to bind to

§

Stats

Show index statistics and cache information

Fields

§json: bool

Output format as JSON

§pretty: bool

Pretty-print JSON output (only with –json)

§

Clear

Clear the local cache

Fields

§yes: bool

Skip confirmation prompt

§

ListFiles

List all indexed files

Fields

§json: bool

Output format as JSON

§pretty: bool

Pretty-print JSON output (only with –json)

§

Watch

Watch for file changes and auto-reindex

Continuously monitors the workspace for changes and automatically triggers incremental reindexing. Useful for IDE integrations and keeping the index always fresh during active development.

The debounce timer resets on every file change, batching rapid edits (e.g., multi-file refactors, format-on-save) into a single reindex.

Fields

§path: PathBuf

Directory to watch (defaults to current directory)

§debounce: u64

Debounce duration in milliseconds (default: 15000 = 15s) Waits this long after the last change before reindexing Valid range: 5000-30000 (5-30 seconds)

§quiet: bool

Suppress output (only log errors)

§

Mcp

Start MCP server for AI agent integration

Runs Reflex as a Model Context Protocol (MCP) server using stdio transport. This command is automatically invoked by MCP clients like Claude Code and should not be run manually.

Configuration example for Claude Code (~/.claude/claude_code_config.json): { “mcpServers”: { “reflex”: { “type”: “stdio”, “command”: “rfx”, “args”: [“mcp”] } } }

§

Analyze

Analyze codebase structure and dependencies

Perform graph-wide dependency analysis to understand code architecture. By default, shows a summary report with counts. Use specific flags for detailed results.

Examples: rfx analyze # Summary report rfx analyze –circular # Find cycles rfx analyze –hotspots # Most-imported files rfx analyze –hotspots –min-dependents 5 # Filter by minimum rfx analyze –unused # Orphaned files rfx analyze –islands # Disconnected components rfx analyze –hotspots –count # Just show count rfx analyze –circular –glob “src/**” # Limit to src/

Fields

§circular: bool

Show circular dependencies

§hotspots: bool

Show most-imported files (hotspots)

§min_dependents: usize

Minimum number of dependents for hotspots (default: 2)

§unused: bool

Show unused/orphaned files

§islands: bool

Show disconnected components (islands)

§min_island_size: usize

Minimum island size (default: 2)

§max_island_size: Option<usize>

Maximum island size (default: 500 or 50% of total files)

§format: String

Output format: tree (default), table, dot

§json: bool

Output as JSON

§pretty: bool

Pretty-print JSON output

§count: bool

Only show count and timing, not the actual results

§all: bool

Return all results (no limit) Equivalent to –limit 0, convenience flag for unlimited results

§plain: bool

Use plain text output (disable colors and syntax highlighting)

§glob: Vec<String>

Include files matching glob pattern (can be repeated) Example: –glob “src//*.rs” –glob “tests//*.rs”

§exclude: Vec<String>

Exclude files matching glob pattern (can be repeated) Example: –exclude “target/**” –exclude “*.gen.rs”

§force: bool

Force execution of potentially expensive queries Bypasses broad query detection

§limit: Option<usize>

Maximum number of results

§offset: Option<usize>

Pagination offset

§sort: Option<String>

Sort order for results: asc (ascending) or desc (descending) Applies to –hotspots (by import_count), –islands (by size), –circular (by cycle length) Default: desc (most important first)

§

Deps

Analyze dependencies for a specific file

Show dependencies and dependents for a single file. For graph-wide analysis, use ‘rfx analyze’ instead.

Examples: rfx deps src/main.rs # Show dependencies rfx deps src/config.rs –reverse # Show dependents rfx deps src/api.rs –depth 3 # Transitive deps

Fields

§file: PathBuf

File path to analyze

§reverse: bool

Show files that depend on this file (reverse lookup)

§depth: usize

Traversal depth for transitive dependencies (default: 1)

§format: String

Output format: tree (default), table, dot

§json: bool

Output as JSON

§pretty: bool

Pretty-print JSON output

§

Ask

Ask a natural language question and generate search queries

Uses an LLM to translate natural language questions into rfx query commands. Requires API key configuration for one of: OpenAI, Anthropic, or Groq.

If no question is provided, launches interactive chat mode by default.

Configuration:

  1. Run interactive setup wizard (recommended): rfx ask –configure

  2. OR set API key via environment variable:

    • OPENAI_API_KEY, ANTHROPIC_API_KEY, or GROQ_API_KEY
  3. Optional: Configure provider in .reflex/config.toml: [semantic] provider = “groq” # or openai, anthropic model = “llama-3.3-70b-versatile” # optional, defaults to provider default

Examples: rfx ask –configure # Interactive setup wizard rfx ask # Launch interactive chat (default) rfx ask “Find all TODOs in Rust files” rfx ask “Where is the main function defined?” –execute rfx ask “Show me error handling code” –provider groq

Fields

§question: Option<String>

Natural language question

§execute: bool

Execute queries immediately without confirmation

§provider: Option<String>

Override configured LLM provider (openai, anthropic, groq)

§json: bool

Output format as JSON

§pretty: bool

Pretty-print JSON output (only with –json)

§additional_context: Option<String>

Additional context to inject into prompt (e.g., from rfx context)

§configure: bool

Launch interactive configuration wizard to set up AI provider and API key

§agentic: bool

Enable agentic mode (multi-step reasoning with context gathering)

§max_iterations: usize

Maximum iterations for query refinement in agentic mode (default: 2)

§no_eval: bool

Skip result evaluation in agentic mode

§show_reasoning: bool

Show LLM reasoning blocks at each phase (agentic mode only)

§verbose: bool

Verbose output: show tool results and details (agentic mode only)

§quiet: bool

Quiet mode: suppress progress output (agentic mode only)

§answer: bool

Generate a conversational answer based on search results

§interactive: bool

Launch interactive chat mode (TUI) with conversation history

§debug: bool

Debug mode: output full LLM prompts and retain terminal history

§

Context

Generate codebase context for AI prompts

Provides structural and organizational context about the project to help LLMs understand project layout. Use with rfx ask --additional-context.

By default (no flags), shows all context types. Use individual flags to select specific context types.

Examples: rfx context # Full context (all types) rfx context –path services/backend # Full context for monorepo subdirectory rfx context –framework –entry-points # Specific context types only rfx context –structure –depth 5 # Deep directory tree

§Use with semantic queries

rfx ask “find auth” –additional-context “$(rfx context –framework)”

Fields

§structure: bool

Show directory structure (enabled by default)

§path: Option<String>

Focus on specific directory path

§file_types: bool

Show file type distribution (enabled by default)

§project_type: bool

Detect project type (CLI/library/webapp/monorepo)

§framework: bool

Detect frameworks and conventions

§entry_points: bool

Show entry point files

§test_layout: bool

Show test organization pattern

§config_files: bool

List important configuration files

§depth: usize

Tree depth for –structure (default: 1)

§json: bool

Output as JSON

§

IndexSymbolsInternal

Internal command: Run background symbol indexing (hidden from help)

Fields

§cache_dir: PathBuf

Cache directory path

Trait Implementations§

Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Command

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Command

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,