Debian Codegraph @

src/cgi.rs

raw symbols SCIP
1 //! Inspect CGI environment variables for locale configuration
2
3 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/;
4 use superrust-analyzer cargo locale_config 0.3.0 crate/::{Localerust-analyzer cargo locale_config 0.3.0 Locale#};
5
6 pub fn system_localerust-analyzer cargo locale_config 0.3.0 cgi/system_locale().() -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Localerust-analyzer cargo locale_config 0.3.0 Locale#> {
7 if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(al) = envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("HTTP_ACCEPT_LANGUAGE") {
8 Localerust-analyzer cargo locale_config 0.3.0 Locale#::newrust-analyzer cargo locale_config 0.3.0 impl#[Locale]new().(al.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`AsRef<str>`]as_ref().()).okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]ok().()
9 } else {
10 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
11 }
12 }