Green’s Dictionary of Slang

brim n.2

1. (US black) a hat.

[US]Esquire July 44: Hats [...] are called brims.
[US]O. Hawkins Ghetto Sketches 12: Adjusting and readjusting his large, white-rimmed burgundy brim.
[US]E. Folb Runnin’ Down Some Lines 110: Some terms that talk primarily about specific clothing items, such as [...] brims (hats), kicks (shoes), lizards (lizard-skin shoes), leather pieces (leather jackets), and so on.
[US]UGK ‘Cocaine in the Back of the Ride’ 🎵 Khaki pants, black sweater with the U.G.K. brim.
[US]B. Gifford Sinaloa Story 178: You ever see a vulture wear a brim?

2. the flesh at the base of one’s glans penis.

[UK]Roger’s Profanisaurus in Viz 87 Dec. n.p.: brim n. The skirting around the base of one’s helmet (qv).