Lines Matching refs:str
339 use std::str::FromStr;
411 static LOG_LEVEL_NAMES: [&str; 6] = ["OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
413 static SET_LOGGER_ERROR: &str = "attempted to set a logger after the logging system \
415 static LEVEL_PARSE_ERROR: &str =
542 fn eq_ignore_ascii_case(a: &str, b: &str) -> bool {
562 fn from_str(level: &str) -> Result<Level, Self::Err> {
609 pub fn as_str(&self) -> &'static str {
743 fn from_str(level: &str) -> Result<LevelFilter, Self::Err> {
790 pub fn as_str(&self) -> &'static str {
815 Static(&'static str),
816 Borrowed(&'a str),
821 fn get(&self) -> &'a str {
929 pub fn target(&self) -> &'a str {
935 pub fn module_path(&self) -> Option<&'a str> {
941 pub fn module_path_static(&self) -> Option<&'static str> {
950 pub fn file(&self) -> Option<&'a str> {
956 pub fn file_static(&self) -> Option<&'static str> {
1091 pub fn target(&mut self, target: &'a str) -> &mut RecordBuilder<'a> {
1098 pub fn module_path(&mut self, path: Option<&'a str>) -> &mut RecordBuilder<'a> {
1105 pub fn module_path_static(&mut self, path: Option<&'static str>) -> &mut RecordBuilder<'a> {
1112 pub fn file(&mut self, file: Option<&'a str>) -> &mut RecordBuilder<'a> {
1119 pub fn file_static(&mut self, file: Option<&'static str>) -> &mut RecordBuilder<'a> {
1187 target: &'a str,
1205 pub fn target(&self) -> &'a str {
1257 pub fn target(&mut self, target: &'a str) -> &mut MetadataBuilder<'a> {
1556 /// [`from_str`]: https://doc.rust-lang.org/std/str/trait.FromStr.html#tymethod.from_str
1589 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1590 kvs: Option<&[(&str, &str)]>,
1616 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1617 kvs: Option<&[(&str, &dyn kv::ToValue)]>,
1634 pub fn __private_api_enabled(level: Level, target: &str) -> bool {
1913 let kvs: &[(&str, i32)] = &[("a", 1), ("b", 2)];
1928 let kvs: &[(&str, &str)] = &[("a", "1"), ("b", "2")];