[−][src]Struct user_agent_parser::UserAgentParser
Implementations
impl UserAgentParser
[src]
pub fn from_path<P: AsRef<Path>>(
path: P
) -> Result<UserAgentParser, UserAgentParserError>
[src]
path: P
) -> Result<UserAgentParser, UserAgentParserError>
Read the list of regular expressions (YAML data) from a file to create a UserAgentParser
instance.
pub fn from_str<S: AsRef<str>>(
yaml: S
) -> Result<UserAgentParser, UserAgentParserError>
[src]
yaml: S
) -> Result<UserAgentParser, UserAgentParserError>
Read the list of regular expressions (YAML data) from a string to create a UserAgentParser
instance.
impl UserAgentParser
[src]
pub fn parse_product<'a, S: AsRef<str> + ?Sized>(
&'a self,
user_agent: &'a S
) -> Product<'a>
[src]
&'a self,
user_agent: &'a S
) -> Product<'a>
pub fn parse_os<'a, S: AsRef<str> + ?Sized>(
&'a self,
user_agent: &'a S
) -> OS<'a>
[src]
&'a self,
user_agent: &'a S
) -> OS<'a>
pub fn parse_device<'a, S: AsRef<str> + ?Sized>(
&'a self,
user_agent: &'a S
) -> Device<'a>
[src]
&'a self,
user_agent: &'a S
) -> Device<'a>
pub fn parse_cpu<'a, S: AsRef<str> + ?Sized>(
&'a self,
user_agent: &'a S
) -> CPU<'a>
[src]
&'a self,
user_agent: &'a S
) -> CPU<'a>
pub fn parse_engine<'a, S: AsRef<str> + ?Sized>(
&'a self,
user_agent: &'a S
) -> Engine<'a>
[src]
&'a self,
user_agent: &'a S
) -> Engine<'a>
Trait Implementations
impl Debug for UserAgentParser
[src]
impl FromStr for UserAgentParser
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserAgentParser
impl Send for UserAgentParser
impl Sync for UserAgentParser
impl Unpin for UserAgentParser
impl UnwindSafe for UserAgentParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,