pub struct ConstSegmentInfoBuilder { /* private fields */ }
Expand description
A builder for the const segment information.
Implementations§
source§impl ConstSegmentInfoBuilder
impl ConstSegmentInfoBuilder
sourcepub fn insert(&mut self, const_type: &ConcreteTypeId)
pub fn insert(&mut self, const_type: &ConcreteTypeId)
Inserts a const type into the builder, to be added to the const segment.
sourcepub fn build(
self,
registry: &ProgramRegistry<CoreType, CoreLibfunc>
) -> Result<ConstSegmentInfo, CompilationError>
pub fn build( self, registry: &ProgramRegistry<CoreType, CoreLibfunc> ) -> Result<ConstSegmentInfo, CompilationError>
Builds the const segment information.
Trait Implementations§
source§impl Debug for ConstSegmentInfoBuilder
impl Debug for ConstSegmentInfoBuilder
source§impl Default for ConstSegmentInfoBuilder
impl Default for ConstSegmentInfoBuilder
source§fn default() -> ConstSegmentInfoBuilder
fn default() -> ConstSegmentInfoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ConstSegmentInfoBuilder
impl Send for ConstSegmentInfoBuilder
impl Sync for ConstSegmentInfoBuilder
impl Unpin for ConstSegmentInfoBuilder
impl UnwindSafe for ConstSegmentInfoBuilder
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