#[non_exhaustive]pub enum Location {
ByteOffset(u64),
Lba(u64),
Sector(u64),
Rva(u64),
RecordId(u64),
Path(String),
Field(String),
Key(String),
Other {
space: String,
value: u64,
},
}Expand description
Where a finding’s evidence sits on the medium — spanning partition-table (byte/LBA/sector), filesystem (path/field), executable/memory (RVA), record-oriented (event-log/journal/database) and registry positions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ByteOffset(u64)
Absolute byte offset in the image.
Lba(u64)
Logical block address.
Sector(u64)
Physical/optical sector index.
Rva(u64)
Relative virtual address (executable image / memory).
RecordId(u64)
Record identity (event-log record, USN/journal record, database row).
Path(String)
Path within a filesystem/volume.
Field(String)
A named structure field (e.g. volume_space_size).
Key(String)
A registry key path.
Other
Escape hatch: a numeric address in a named space (e.g. memory:va).
Prefer a dedicated variant when one fits; this keeps rare cases lossless.
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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