Lines Matching defs:file
2 // file at the top-level directory of this distribution and at
8 // option. This file may not be copied, modified, or distributed
290 //! module path and file name information associated with the message will unfortunately be lost.
879 file: Option<MaybeStaticStr<'a>>,
948 /// The source file containing the message.
950 pub fn file(&self) -> Option<&'a str> {
951 self.file.map(|s| s.get())
957 match self.file {
988 file: self.file,
1011 /// .file(Some("server.rs"))
1031 /// .file(Some("app.rs"))
1048 /// - `file`: `None`
1060 file: None,
1110 /// Set [`file`](struct.Record.html#method.file)
1112 pub fn file(&mut self, file: Option<&'a str>) -> &mut RecordBuilder<'a> {
1113 self.record.file = file.map(MaybeStaticStr::Borrowed);
1117 /// Set [`file`](struct.Record.html#method.file) to a `'static` string.
1119 pub fn file_static(&mut self, file: Option<&'static str>) -> &mut RecordBuilder<'a> {
1120 self.record.file = file.map(MaybeStaticStr::Static);
1589 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1604 .file_static(Some(file))
1616 &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
1625 .file_static(Some(file))
1846 .file(Some("bar"))
1851 assert_eq!(record_test.file(), Some("bar"));
1865 .file(Some("bar"))
1870 assert_eq!(record_test.file(), Some("bar"));
1880 .file(Some("bar"))
1888 assert_eq!(record_test.file(), Some("bar"));