Searched refs:from_env (Results 1 - 8 of 8) sorted by relevance
/third_party/rust/crates/env_logger/src/ |
H A D | lib.rs | 266 //! env_logger::Builder::from_env(Env::default().default_filter_or("warn")).init(); 389 /// or use [`from_env`] or [`from_default_env`] instead. 409 /// [`from_env`]: #method.from_env 428 /// let mut builder = Builder::from_env("MY_LOG"); 440 /// let mut builder = Builder::from_env(env); 443 pub fn from_env<'a, E>(env: E) -> Self in from_env() functions 507 /// This method is a convenient way to call `from_env(Env::default())` without 524 Self::from_env(Env::default()) in from_default_env() 849 /// let logger = Logger::from_env("MY_LO 862 pub fn from_env<'a, E>(env: E) -> Self from_env() functions 1242 pub fn from_env<'a, E>(env: E) -> Builder from_env() functions [all...] |
/third_party/rust/crates/env_logger/examples/ |
H A D | custom_default_format.rs | 30 Builder::from_env(env) in init_logger()
|
H A D | custom_format.rs | 31 Builder::from_env(env) in main()
|
H A D | custom_logger.rs | 28 let mut builder = Builder::from_env(FILTER_ENV); in new()
|
/third_party/libuv/test/ |
H A D | test-spawn.c | 1264 WCHAR* from_env[] = { in TEST_IMPL() local 1282 int found_in_usr_env[ARRAY_SIZE(from_env)] = {0}; in TEST_IMPL() 1283 WCHAR *expected[ARRAY_SIZE(from_env)]; in TEST_IMPL() 1289 for (i = 0; i < ARRAY_SIZE(from_env); i++) { in TEST_IMPL() 1291 size_t len = GetEnvironmentVariableW(from_env[i], NULL, 0); in TEST_IMPL() 1298 size_t name_len = wcslen(from_env[i]); in TEST_IMPL() 1300 wmemcpy(str, from_env[i], name_len); in TEST_IMPL() 1304 GetEnvironmentVariableW(from_env[i], str, len); in TEST_IMPL()
|
/third_party/rust/crates/clap/clap_complete/src/shells/ |
H A D | shell.rs | 130 /// generate(Shell::from_env().unwrap_or(Shell::Bash), &mut cmd, "myapp", &mut std::io::stdout()); 132 pub fn from_env() -> Option<Shell> { in from_env() functions
|
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | item.rs | 504 Method::from_env(attr.name.clone(), "CARGO_PKG_DESCRIPTION")? in push_attrs() 525 if let Some(method) = Method::from_env(attr.name.clone(), "CARGO_PKG_AUTHORS")? { in push_attrs() 533 if let Some(method) = Method::from_env(attr.name.clone(), "CARGO_PKG_VERSION")? { in push_attrs() 1218 fn from_env(ident: Ident, env_var: &str) -> Result<Option<Self>, syn::Error> { in from_env() functions
|
/third_party/rust/crates/env_logger/src/filter/ |
H A D | mod.rs | 182 pub fn from_env(env: &str) -> Builder { in from_env() functions
|
Completed in 8 milliseconds