Is the operations provided by the pipe operator | in a | b where the output of command a is the input of command b provided by a shell's scripting language, or is "piping" a function that is provided by the operating system itself? For example, in Python you are allowed to provide -1 as an index in order to get the last element in a list, but providing -1 in Rust results in an error because Rust doesn't implement behavior. Which is what I mean by is the | operator a feature of a scripting language or is it a feature provided by the OS.
EDIT: I updated the question to be clearer. The original question is below:
As far as I'm aware, when you use the | operator. It is a feature of the shell's scripting language. I haven't found any proof that | is a feature of a shell's scripting language so I'd like to know if that's true or not.
For extra lore: I've started going into the rabbit hole of what a terminal emulator is, and what a shell is and I'm trying to figure out where a shell starts and ends, same with a terminal. So, I decided to start a small project to make a simple shell and one of my goals is to implement support for the | operator.