This is the general rule for any function, where a function cannot have more than one x value for every y value, there is only one output for every input.
You can also use the vertical line test which states that anything that hits the line more than once is not a function.