Lines Matching defs:module_path
878 module_path: Option<MaybeStaticStr<'a>>,
935 pub fn module_path(&self) -> Option<&'a str> {
936 self.module_path.map(|s| s.get())
942 match self.module_path {
987 module_path: self.module_path,
1013 /// .module_path(Some("server"))
1032 /// .module_path(Some("server"))
1047 /// - `module_path`: `None`
1059 module_path: None,
1096 /// Set [`module_path`](struct.Record.html#method.module_path)
1098 pub fn module_path(&mut self, path: Option<&'a str>) -> &mut RecordBuilder<'a> {
1099 self.record.module_path = path.map(MaybeStaticStr::Borrowed);
1103 /// Set [`module_path`](struct.Record.html#method.module_path) to a `'static` string
1106 self.record.module_path = path.map(MaybeStaticStr::Static);
1589 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1603 .module_path_static(Some(module_path))
1616 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1624 .module_path_static(Some(module_path))
1845 .module_path(Some("foo"))
1850 assert_eq!(record_test.module_path(), Some("foo"));
1864 .module_path(Some("foo"))
1869 assert_eq!(record_test.module_path(), Some("foo"));
1879 .module_path(Some("foo"))
1887 assert_eq!(record_test.module_path(), Some("foo"));