What literary device can be found in the line below?

"And we are here as on a darkling plain"

The literary device used in this line is a metaphor. The speaker is comparing their current situation to a "darkling plain," suggesting a sense of confusion, uncertainty, or darkness.