displacement on an edge of a mesh

hey

Is it possible to make a displacement with lots of details on an edge of a mesh, such as the corner of a wall like the image?
I would like to do this for a procedural map.

image

thanks