ASAP Rocky, who is set to face a criminal trial over gun charges later this month, has been announced as a headline act at the Californian Rolling Loud Festival in March.