pub struct ElfNote<const NAME_SZ: usize, const DESC_SZ: usize> { /* private fields */ }Expand description
An ELF note structure suitable for embedding in a #[link_section] static.
Follows the System V gABI note format as specified in https://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section.
NAME_SZ and DESC_SZ are the padded sizes of the name and descriptor
arrays (including null terminator and alignment padding). Use
padded_name_size and padded_desc_size to compute them from
str.len() + 1 (the null-terminated length).
The constructor enforces these constraints with compile-time assertions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const NAME_SZ: usize, const DESC_SZ: usize> Freeze for ElfNote<NAME_SZ, DESC_SZ>
impl<const NAME_SZ: usize, const DESC_SZ: usize> RefUnwindSafe for ElfNote<NAME_SZ, DESC_SZ>
impl<const NAME_SZ: usize, const DESC_SZ: usize> Send for ElfNote<NAME_SZ, DESC_SZ>
impl<const NAME_SZ: usize, const DESC_SZ: usize> Unpin for ElfNote<NAME_SZ, DESC_SZ>
impl<const NAME_SZ: usize, const DESC_SZ: usize> UnsafeUnpin for ElfNote<NAME_SZ, DESC_SZ>
impl<const NAME_SZ: usize, const DESC_SZ: usize> UnwindSafe for ElfNote<NAME_SZ, DESC_SZ>
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