The type of adjustable wall unit hangers you show, are designed & manufactured specifically for the purpose.
Having said that, the type in your picture are used far less nowadays as they are ugly.....The better type are hidden behind the back panel, are all metal and mounted in a different way...