pub enum Filter {
Crop,
Gay,
Metal,
Flip,
Flop,
Rotate180,
RotateLeft,
RotateRight,
Border,
Nothing,
}Expand description
The 10 supported toilet-compatible filters (FR-003).
Each variant maps to a pure function on owned RenderGrids
(AD-002). Names match toilet(1)’s -F chain vocabulary 1:1 (crop,
gay, metal, flip, flop, rotate180, rotateleft,
rotateright, border, plus the always-available nothing
identity).
Variants§
Crop
Trim surrounding all-blank rows and columns.
Gay
Per-column rainbow color sweep (the toilet --gay aesthetic).
Metal
Blue / gray metallic gradient.
Flip
Horizontal mirror (reverse each row’s columns).
Flop
Vertical mirror (reverse the order of rows).
Rotate180
Rotate 180° (combination of flip + flop).
RotateLeft
Rotate 90° counter-clockwise (transpose + flip).
RotateRight
Rotate 90° clockwise (transpose + flop).
Border
Draw a Unicode box-drawing border around the grid.
Nothing
No-op identity. Always available (no leaf gate).
Implementations§
Trait Implementations§
impl Copy for Filter
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more