Function pretty

Source
pub fn pretty(selection: &Selection) -> SelectionPretty
Expand description

Renders a Selection as a structured DSL expression.

This function folds the input selection using the SelectionSYM interface, producing a SelectionPretty — a human-readable representation in canonical constructor form (e.g., all(range(0..4, true_()))).

Useful for debugging, diagnostics, and implementing Display.

§Example

use ndslice::selection::dsl::*;
use ndslice::selection::pretty::pretty;
let expr = all(range(0..4, true_()));
println!("{}", pretty(&expr)); // prints: all(range(0..4, true_()))