A tight roll of hair worn at the back of the head.

The bun is the stereotypical (or perhaps archetypal) hairstyle for female librarians.