pub struct FileInfo {
pub timestamp: u64,
pub size: u64,
pub md5: [u8; 16],
pub source: Option<LineString>,
}
Expand description
Extra information for file in a LineProgram
.
Fields§
§timestamp: u64
The implementation defined timestamp of the last modification of the file, or 0 if not available.
size: u64
The size of the file in bytes, or 0 if not available.
md5: [u8; 16]
A 16-byte MD5 digest of the file contents.
Only used if version >= 5 and LineProgram::file_has_md5
is true
.
source: Option<LineString>
Optionally some embedded sourcecode.
Only used if version >= 5 and LineProgram::file_has_source
is true
.
NOTE: This currently only supports the LineString::String
variant,
since we’re encoding the string with DW_FORM_string
.
Other variants will result in an LineStringFormMismatch
error.
Trait Implementations§
impl Eq for FileInfo
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.