Skip to main content

try_load_embedded_profiles

Function try_load_embedded_profiles 

pub fn try_load_embedded_profiles() -> Result<impl Iterator<Item = UserAgentProfile>, Box<dyn Error + Sync + Send>>
Available on crate features embed-profiles and std and ua only.
Expand description

Load the profiles embedded with the rama-ua crate.

The embedded file is a precompiled profile set, analyzed when it was exported, so loading only decompresses and decodes it. This function is only available if the embed-profiles feature is enabled.