pub struct OldFileEntry {
pub flags: i32,
pub key: u32,
pub value: u32,
}Expand description
A single library entry in the old cache format.
§Fields
flags- Library type flags (bit 0: ELF library)key- Offset into string table for library namevalue- Offset into string table for library path
§Flag Values
flags & 1 != 0- ELF libraryflags & 1 == 0- Other/unknown format
§Example
let entry = OldFileEntry {
flags: 1, // ELF library
key: 0, // Library name at offset 0 in string table
value: 10, // Library path at offset 10 in string table
};
assert!(entry.flags & 1 != 0); // Is ELF libraryFields§
§flags: i32§key: u32§value: u32Trait Implementations§
Source§impl Clone for OldFileEntry
impl Clone for OldFileEntry
Source§fn clone(&self) -> OldFileEntry
fn clone(&self) -> OldFileEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OldFileEntry
impl Debug for OldFileEntry
Source§impl PartialEq for OldFileEntry
impl PartialEq for OldFileEntry
impl StructuralPartialEq for OldFileEntry
Auto Trait Implementations§
impl Freeze for OldFileEntry
impl RefUnwindSafe for OldFileEntry
impl Send for OldFileEntry
impl Sync for OldFileEntry
impl Unpin for OldFileEntry
impl UnwindSafe for OldFileEntry
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