pub struct NoteGnuAbiTag {
pub os: u32,
pub major: u32,
pub minor: u32,
pub subminor: u32,
}
Expand description
Contains four 4-byte integers. The first 4-byte integer specifies the os. The second, third, and fourth 4-byte integers contain the earliest compatible kernel version. For example, if the 3 integers are 6, 0, and 7, this signifies a 6.0.7 kernel.
(see: https://raw.githubusercontent.com/wiki/hjl-tools/linux-abi/linux-abi-draft.pdf)
Fields§
§os: u32
§major: u32
§minor: u32
§subminor: u32
Trait Implementations§
Source§impl Clone for NoteGnuAbiTag
impl Clone for NoteGnuAbiTag
Source§fn clone(&self) -> NoteGnuAbiTag
fn clone(&self) -> NoteGnuAbiTag
Returns a copy 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 NoteGnuAbiTag
impl Debug for NoteGnuAbiTag
Source§impl ParseAt for NoteGnuAbiTag
impl ParseAt for NoteGnuAbiTag
Source§fn parse_at<E: EndianParse>(
endian: E,
_class: Class,
offset: &mut usize,
data: &[u8],
) -> Result<Self, ParseError>
fn parse_at<E: EndianParse>( endian: E, _class: Class, offset: &mut usize, data: &[u8], ) -> Result<Self, ParseError>
Parse this type by using the given endian-awareness and ELF class layout.
This is generic on EndianParse in order to allow users to optimize for
their expectations of data layout. See EndianParse for more details.
Source§fn size_for(_class: Class) -> usize
fn size_for(_class: Class) -> usize
Returns the expected size of the type being parsed for the given ELF class
Source§fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
Checks whether the given entsize matches what we need to parse this type Read more
Source§impl PartialEq for NoteGnuAbiTag
impl PartialEq for NoteGnuAbiTag
impl Copy for NoteGnuAbiTag
impl Eq for NoteGnuAbiTag
impl StructuralPartialEq for NoteGnuAbiTag
Auto Trait Implementations§
impl Freeze for NoteGnuAbiTag
impl RefUnwindSafe for NoteGnuAbiTag
impl Send for NoteGnuAbiTag
impl Sync for NoteGnuAbiTag
impl Unpin for NoteGnuAbiTag
impl UnwindSafe for NoteGnuAbiTag
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