pub struct Section32 {
pub name: String,
pub header: Shdr32,
pub contents: Contents32,
}
Fields§
§name: String
§header: Shdr32
§contents: Contents32
Implementations§
Source§impl Section32
impl Section32
pub fn new(name: String, hdr: ShdrPreparation32, contents: Contents32) -> Self
Sourcepub fn to_le_bytes(&self) -> Vec<u8> ⓘ
pub fn to_le_bytes(&self) -> Vec<u8> ⓘ
create binary without header
pub fn new_null_section() -> Self
Trait Implementations§
Source§impl Ord for Section32
impl Ord for Section32
Source§impl PartialOrd for Section32
impl PartialOrd for Section32
impl Eq for Section32
impl StructuralPartialEq for Section32
Auto Trait Implementations§
impl Freeze for Section32
impl RefUnwindSafe for Section32
impl Send for Section32
impl Sync for Section32
impl Unpin for Section32
impl UnwindSafe for Section32
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