pub struct BootstrapContext {
pub layered: bool,
/* private fields */
}Expand description
BootstrapContext is used to hold in memory data of bootstrap during build.
Fields§
§layered: boolThis build has a parent bootstrap.
Implementations§
Source§impl BootstrapContext
impl BootstrapContext
Sourcepub fn new(storage: Option<ArtifactStorage>, layered: bool) -> Result<Self>
pub fn new(storage: Option<ArtifactStorage>, layered: bool) -> Result<Self>
Create a new instance of BootstrapContext.
Sourcepub fn align_offset(&mut self, align_size: u64)
pub fn align_offset(&mut self, align_size: u64)
Align the write position.
Auto Trait Implementations§
impl Freeze for BootstrapContext
impl !RefUnwindSafe for BootstrapContext
impl !Send for BootstrapContext
impl !Sync for BootstrapContext
impl Unpin for BootstrapContext
impl !UnwindSafe for BootstrapContext
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