pub struct DataSection {
pub name: String,
pub data: Vec<u8>,
pub alignment: Option<u32>,
}Expand description
数据段定义
Fields§
§name: String数据段名称
data: Vec<u8>数据内容
alignment: Option<u32>对齐要求(可选)
Trait Implementations§
Source§impl Clone for DataSection
impl Clone for DataSection
Source§fn clone(&self) -> DataSection
fn clone(&self) -> DataSection
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 moreAuto Trait Implementations§
impl Freeze for DataSection
impl RefUnwindSafe for DataSection
impl Send for DataSection
impl Sync for DataSection
impl Unpin for DataSection
impl UnsafeUnpin for DataSection
impl UnwindSafe for DataSection
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