Hardboiled fiction is a literary genre that shares some of its characters and settings with crime fiction.