Skip to main content

ExtendedCommands

Enum ExtendedCommands 

Source
pub enum ExtendedCommands {
Show 25 variants Chat {
Show 14 fields file: PathBuf, temperature: f32, top_p: f32, max_tokens: usize, system: Option<String>, inspect: bool, no_gpu: bool, gpu: bool, trace: bool, trace_steps: Option<Vec<String>>, trace_verbose: bool, trace_output: Option<PathBuf>, trace_level: String, profile: bool,
}, Bench { file: PathBuf, warmup: usize, iterations: usize, max_tokens: usize, prompt: Option<String>, fast: bool, brick: Option<String>, }, Eval {
Show 13 fields file: PathBuf, dataset: String, text: Option<String>, max_tokens: usize, threshold: f32, task: Option<String>, data: Option<PathBuf>, model_size: Option<String>, num_classes: usize, generate_card: bool, device: String, samples: usize, temperature: f32,
}, Profile {
Show 22 fields file: PathBuf, granular: bool, format: String, focus: Option<String>, detect_naive: bool, threshold: f64, compare_hf: Option<String>, energy: bool, perf_grade: bool, callgraph: bool, fail_on_naive: bool, output: Option<PathBuf>, ci: bool, assert_throughput: Option<f64>, assert_p99: Option<f64>, assert_p50: Option<f64>, warmup: usize, measure: usize, tokens: usize, ollama: bool, no_gpu: bool, compare: Option<PathBuf>,
}, Qa {
Show 24 fields file: PathBuf, assert_tps: Option<f64>, assert_speedup: Option<f64>, assert_gpu_speedup: Option<f64>, skip_golden: bool, skip_throughput: bool, skip_ollama: bool, skip_gpu_speedup: bool, skip_contract: bool, skip_format_parity: bool, skip_ptx_parity: bool, safetensors_path: Option<PathBuf>, iterations: usize, warmup: usize, max_tokens: usize, json: bool, verbose: bool, min_executed: Option<usize>, previous_report: Option<PathBuf>, regression_threshold: Option<f64>, skip_gpu_state: bool, skip_metadata: bool, skip_capability: bool, assert_classifier_head: bool,
}, Parity { file: PathBuf, prompt: String, assert: bool, }, PtxMap { file: PathBuf, kernel: Option<String>, reverse: Option<String>, json: bool, verbose: bool, prefill: bool, }, Ptx { file: Option<PathBuf>, kernel: Option<String>, strict: bool, bugs: bool, json: bool, verbose: bool, }, Tune {
Show 20 fields file: Option<PathBuf>, method: String, rank: Option<u32>, vram: f64, plan: bool, model: Option<String>, freeze_base: bool, train_data: Option<PathBuf>, json: bool, task: Option<String>, budget: usize, strategy: String, scheduler: String, scout: bool, data: Option<PathBuf>, num_classes: usize, model_size: Option<String>, from_scout: Option<PathBuf>, max_epochs: usize, time_limit: Option<String>,
}, Monitor { dir: Option<PathBuf>, refresh_ms: u64, compact: bool, json: bool, format: String, }, Runs { command: RunsCommands, }, Experiment { command: ExperimentCommands, }, Cbtop {
Show 16 fields model: Option<String>, attach: Option<String>, model_path: Option<PathBuf>, headless: bool, json: bool, output: Option<PathBuf>, ci: bool, throughput: Option<f64>, brick_score: Option<u32>, warmup: usize, iterations: usize, speculative: bool, speculation_k: usize, draft_model: Option<PathBuf>, concurrent: usize, simulated: bool,
}, Probar { file: PathBuf, output: PathBuf, format: String, golden: Option<PathBuf>, layer: Option<String>, }, CompareHf { file: PathBuf, hf: String, tensor: Option<String>, threshold: f64, json: bool, }, Hex {
Show 15 fields file: PathBuf, tensor: Option<String>, limit: usize, stats: bool, list: bool, json: bool, header: bool, blocks: bool, distribution: bool, contract: bool, entropy: bool, raw: bool, offset: String, width: usize, slice: Option<String>,
}, Tree { file: PathBuf, filter: Option<String>, format: String, sizes: bool, depth: Option<usize>, }, Flow { file: PathBuf, layer: Option<String>, component: String, verbose: bool, json: bool, }, Qualify { file: PathBuf, tier: String, timeout: u64, json: bool, verbose: bool, skip: Option<Vec<String>>, }, Train { command: TrainCommands, }, Tokenize { command: TokenizeCommands, }, Data { command: DataCommands, }, Pipeline { command: PipelineCommands, }, Diagnose { checkpoint_dir: PathBuf, data: Option<PathBuf>, model_size: Option<String>, num_classes: usize, }, Tools(ToolCommands),
}
Expand description

Extended CLI commands (analysis, profiling, QA, benchmarks, and advanced tools).

Flattened into Commands via #[command(flatten)] so all subcommands remain top-level from the user’s perspective (e.g., apr chat, apr profile).

Variants§

§

Chat

Interactive chat with language model

Fields

§file: PathBuf

Path to .apr model file

§temperature: f32

Sampling temperature (0 = greedy, higher = more random)

§top_p: f32

Nucleus sampling threshold

§max_tokens: usize

Maximum tokens to generate per response

§system: Option<String>

System prompt to set model behavior

§inspect: bool

Show inspection info (top-k probs, tokens/sec)

§no_gpu: bool

Disable GPU acceleration (use CPU)

§gpu: bool

Force GPU acceleration (requires CUDA)

§trace: bool

Enable inference tracing (APR-TRACE-001)

§trace_steps: Option<Vec<String>>

Trace specific steps only (comma-separated)

§trace_verbose: bool

Verbose tracing

§trace_output: Option<PathBuf>

Save trace output to JSON file

§trace_level: String

Trace detail level (none, basic, layer, payload)

§profile: bool

Enable inline Roofline profiling (PMAT-SHOWCASE-METHODOLOGY-001)

§

Bench

Benchmark throughput (spec H12: >= 10 tok/s)

Fields

§file: PathBuf

Path to model file

§warmup: usize

Number of warmup iterations

§iterations: usize

Number of measurement iterations

§max_tokens: usize

Max tokens to generate per iteration

§prompt: Option<String>

Test prompt

§fast: bool

Use realizar for fast inference (vs aprender baseline)

§brick: Option<String>

Benchmark specific brick

§

Eval

Evaluate model perplexity (spec H13: PPL <= 20) or classification metrics

Fields

§file: PathBuf

Path to model file or checkpoint directory

§dataset: String

Dataset: wikitext-2, lambada, or custom

§text: Option<String>

Custom text (when dataset=custom)

§max_tokens: usize

Maximum tokens to evaluate

§threshold: f32

Perplexity threshold for pass/fail

§task: Option<String>

Task type: omit for perplexity, “classify” for classification eval

§data: Option<PathBuf>

Test data file (JSONL) for classification evaluation

§model_size: Option<String>

Model size hint: “0.5B”, “tiny” (for classification eval)

§num_classes: usize

Number of output classes (default: 5)

§generate_card: bool

Generate HuggingFace model card (README.md) in checkpoint dir

§device: String

Device for inference: “cpu” (default) or “cuda” (GPU-accelerated, ALB-089)

§samples: usize

Number of samples per problem for pass@k (ALB-088, default: 1)

§temperature: f32

Sampling temperature (0.0 = greedy, 0.8 = standard for pass@k>1)

§

Profile

Deep profiling with Roofline analysis

Fields

§file: PathBuf

Path to model file

§granular: bool

Layer-by-layer granular analysis

§format: String

Output format (human, json, flamegraph)

§focus: Option<String>

Focus on specific operation

§detect_naive: bool

Detect naive implementations

§threshold: f64

GFLOPS threshold for naive detection

§compare_hf: Option<String>

Compare against HuggingFace baseline

§energy: bool

Measure energy consumption (requires RAPL)

§perf_grade: bool

Compute performance grade (vs Ollama baseline)

§callgraph: bool

Show call graph

§fail_on_naive: bool

Exit non-zero if naive implementation detected

§output: Option<PathBuf>

Output file path for flamegraph SVG (GH-174, PMAT-182)

§ci: bool

Enable CI mode with assertion checks (exits 1 on failure)

§assert_throughput: Option<f64>

Minimum throughput in tok/s (CI assertion, exits 1 if below)

§assert_p99: Option<f64>

Maximum p99 latency in ms (CI assertion, exits 1 if above)

§assert_p50: Option<f64>

Maximum p50 latency in ms (CI assertion, exits 1 if above)

§warmup: usize

Warmup passes before measurement (default: 3)

§measure: usize

Measurement passes (default: 10)

§tokens: usize

Number of tokens to generate per measurement pass (default: 32)

§ollama: bool

Compare against Ollama baseline (runs ollama for comparison)

§no_gpu: bool

Disable GPU (force CPU-only profiling)

§compare: Option<PathBuf>

Compare against another model format (F-PROFILE-011)

§

Qa

Falsifiable QA checklist for model releases

Fields

§file: PathBuf

Path to model file

§assert_tps: Option<f64>

Minimum throughput threshold in tok/s

§assert_speedup: Option<f64>

Minimum speedup vs Ollama

§assert_gpu_speedup: Option<f64>

Minimum GPU vs CPU speedup (F-PERF-042)

§skip_golden: bool

Skip golden output test

§skip_throughput: bool

Skip throughput benchmark

§skip_ollama: bool

Skip Ollama parity comparison

§skip_gpu_speedup: bool

Skip GPU vs CPU speedup test (F-PERF-042)

§skip_contract: bool

Skip tensor contract validation (PMAT-235)

§skip_format_parity: bool

Skip cross-format parity test (F-QUAL-032)

§skip_ptx_parity: bool

Skip PTX parity validation (GH-219)

§safetensors_path: Option<PathBuf>

SafeTensors model path for cross-format parity test (F-QUAL-032)

§iterations: usize

Number of benchmark iterations

§warmup: usize

Number of warmup iterations

§max_tokens: usize

Maximum tokens to generate

§json: bool

Output as JSON (for CI integration)

§verbose: bool

Verbose output

§min_executed: Option<usize>

Minimum number of gates that must execute (fail if fewer)

§previous_report: Option<PathBuf>

Previous QA report for regression detection

§regression_threshold: Option<f64>

Maximum allowed performance regression ratio (default: 0.10 = 10%)

§skip_gpu_state: bool

Skip GPU state isolation test

§skip_metadata: bool

Skip metadata plausibility validation (Bug 210, GH-222)

§skip_capability: bool

Skip GPU capability match gate (GH-280)

§assert_classifier_head: bool

Assert classifier head presence and shape (F-CLASS-004)

§

Parity

GPU/CPU parity check (PMAT-232: genchi genbutsu — see where GPU diverges)

Fields

§file: PathBuf

Path to GGUF model file

§prompt: String

Prompt text (default: “What is 2+2?”)

§assert: bool

Assert parity (exit non-zero on divergence)

§

PtxMap

Model-to-PTX source mapping (Mieruka: make GPU kernel dispatch visible)

Fields

§file: PathBuf

Path to GGUF model file

§kernel: Option<String>

Filter to specific kernel (e.g., –kernel Q4KGemv)

§reverse: Option<String>

Reverse lookup: kernel name -> which layers/steps use it

§json: bool

Output as JSON

§verbose: bool

Full PTX snippets and detailed analysis

§prefill: bool

Show batched prefill kernel variants instead of decode

§

Ptx

PTX analysis and bug detection (trueno-explain: register pressure, roofline, 15+ bug detectors)

Fields

§file: Option<PathBuf>

Path to a PTX source file

§kernel: Option<String>

Analyze a named kernel from trueno-gpu

§strict: bool

Strict mode (no performance whitelist)

§bugs: bool

Show only bug analysis (skip register/memory/roofline)

§json: bool

Output as JSON

§verbose: bool

Verbose output (include PTX source listing)

§

Tune

ML tuning: LoRA/QLoRA configuration, memory planning, and HPO (GH-176, SPEC-TUNE-2026-001)

Fields

§file: Option<PathBuf>

Path to model file (optional if using –model)

§method: String

Tuning method: auto, full, lora, qlora

§rank: Option<u32>

LoRA rank (default: auto-selected)

§vram: f64

Available VRAM in GB

§plan: bool

Only plan configuration, don’t train

§model: Option<String>

Model size for planning (e.g., “7B”, “1.5B”)

§freeze_base: bool

Freeze base model weights

§train_data: Option<PathBuf>

Training data file (JSONL format)

§json: bool

Output as JSON (for CI integration)

§task: Option<String>

Task type for HPO: classify (SPEC-TUNE-2026-001)

§budget: usize

Number of HPO trials (default: 10)

§strategy: String

HPO search strategy: tpe, grid, random

§scheduler: String

HPO scheduler: asha, median, none

§scout: bool

Scout mode: 1 epoch per trial for fast exploration

§data: Option<PathBuf>

Training data file for HPO (JSONL format)

§num_classes: usize

Number of output classes for classification

§model_size: Option<String>

Model size hint for HPO (e.g., “0.5B”, “1.5B”)

§from_scout: Option<PathBuf>

Warm-start from scout phase results directory

§max_epochs: usize

Maximum epochs per trial (full mode, default: 20)

§time_limit: Option<String>

Maximum wall-clock time (e.g., “8h”, “30m”)

§

Monitor

Attach live TUI to a running training session

Fields

§dir: Option<PathBuf>

Experiment output directory (same as finetune -o)

§refresh_ms: u64

Refresh interval in milliseconds

§compact: bool

Compact display mode

§json: bool

Output JSON lines instead of TUI (for LLM agents and CI)

§format: String

Output format: tui (default), json, text

§

Runs

List, show, and compare training experiment runs

Fields

§

Experiment

Interactive experiment browser (TUI with loss curves)

Fields

§

Cbtop

ComputeBrick pipeline monitor (cbtop)

Fields

§model: Option<String>

Model name (e.g., qwen2.5-coder-1.5b)

§attach: Option<String>

Attach to running realizar process

§model_path: Option<PathBuf>

Path to GGUF model file for real profiling

§headless: bool

Run in headless mode (no TUI, for CI/automation)

§json: bool

Output JSON format (requires –headless)

§output: Option<PathBuf>

Output file path (requires –headless)

§ci: bool

CI mode: exit with code 1 if thresholds not met

§throughput: Option<f64>

Minimum throughput threshold in tok/s (for –ci)

§brick_score: Option<u32>

Minimum brick score threshold 0-100 (for –ci)

§warmup: usize

Number of warmup iterations before measurement

§iterations: usize

Number of measurement iterations

§speculative: bool

PAR-100: Enable speculative decoding benchmark

§speculation_k: usize

PAR-100: Number of tokens to draft speculatively (default: 4)

§draft_model: Option<PathBuf>

PAR-099: Path to draft model for speculative decoding

§concurrent: usize

PAR-102: Number of concurrent requests

§simulated: bool

Use simulated data (for CI testing only)

§

Probar

Export for probar visual testing

Fields

§file: PathBuf

Path to .apr model file

§output: PathBuf

Output directory for test artifacts

§format: String

Export format: json, png, or both

§golden: Option<PathBuf>

Golden reference directory for comparison

§layer: Option<String>

Filter layers by name pattern

§

CompareHf

Compare APR model against HuggingFace source

Fields

§file: PathBuf

Path to .apr model file

§hf: String

HuggingFace repo ID (e.g., openai/whisper-tiny)

§tensor: Option<String>

Filter tensors by name pattern

§threshold: f64

Comparison threshold (default: 1e-5)

§json: bool

Output as JSON

§

Hex

Format-aware binary forensics (10X better than xxd)

Fields

§file: PathBuf

Path to model file (APR, GGUF, or SafeTensors)

§tensor: Option<String>

Filter tensors by name pattern

§limit: usize

Limit bytes/values to display

§stats: bool

Show tensor statistics

§list: bool

List tensor names only

§json: bool

Output as JSON

§header: bool

Annotated file header (magic, version, tensor count, metadata)

§blocks: bool

Q4K/Q6K/Q8_0 super-block structure with field annotations

§distribution: bool

Value histogram + entropy + kurtosis analysis

§contract: bool

Layout contract verification overlay per tensor

§entropy: bool

Per-region byte entropy analysis

§raw: bool

Raw bytes (like xxd but format-aware, with ASCII column)

§offset: String

Start at byte offset (supports 0x prefix for hex)

§width: usize

Bytes per row for raw output (default: 16)

§slice: Option<String>

Slice range for partial tensor reads (e.g., 0:3 for first 3 elements)

§

Tree

Model architecture tree view

Fields

§file: PathBuf

Path to .apr model file

§filter: Option<String>

Filter by component pattern

§format: String

Output format: ascii, dot, mermaid, json

§sizes: bool

Show tensor sizes

§depth: Option<usize>

Maximum tree depth

§

Flow

Data flow visualization

Fields

§file: PathBuf

Path to .apr model file

§layer: Option<String>

Filter by layer pattern

§component: String

Component to visualize: full, encoder, decoder, etc.

§verbose: bool

Verbose output with statistics

§json: bool

Output as JSON

§

Qualify

Cross-subcommand smoke test (does every tool handle this model?)

Fields

§file: PathBuf

Path to model file (APR, GGUF, or SafeTensors)

§tier: String

Testing tier: smoke (Phase 1), standard (+contracts), full (+playbook)

§timeout: u64

Timeout per gate in seconds

§json: bool

Output as JSON

§verbose: bool

Show subcommand output (disable stdout suppression)

§skip: Option<Vec<String>>

Skip specific gates (comma-separated)

§

Train

Training pipeline (plan/apply) — forjar-style pre-flight validation

Fields

§

Tokenize

Tokenizer training pipeline (plan/apply) — BPE vocabulary learning

Fields

§

Data

Data quality pipeline (audit, split, balance) — powered by alimentar

Fields

§

Pipeline

Pipeline orchestration (plan/apply/status) — wraps forjar DAG engine

Fields

§

Diagnose

Automated Five Whys diagnosis on a training checkpoint

Fields

§checkpoint_dir: PathBuf

Path to checkpoint directory

§data: Option<PathBuf>

Test data file (JSONL) for evaluation

§model_size: Option<String>

Model size hint: “0.5B”, “tiny”

§num_classes: usize

Number of output classes (default: 5)

§

Tools(ToolCommands)

Publishing, conversion, and analysis tools

Trait Implementations§

Source§

impl Debug for ExtendedCommands

Source§

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

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

impl FromArgMatches for ExtendedCommands

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 ExtendedCommands

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> 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> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. 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> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

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

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,