Type Alias cairo_lang_lowering::objects::blocks::FlatBlocksBuilder
source · pub type FlatBlocksBuilder = BlocksBuilder<FlatBlock>;
Aliased Type§
struct FlatBlocksBuilder(pub Vec<FlatBlock, Global>);
Fields§
§0: Vec<FlatBlock, Global>
Implementations§
source§impl<T: Default> BlocksBuilder<T>
impl<T: Default> BlocksBuilder<T>
pub fn new() -> Self
pub fn alloc(&mut self, block: T) -> BlockId
sourcepub fn alloc_empty(&mut self) -> BlockId
pub fn alloc_empty(&mut self) -> BlockId
Allocate a new block ID. The block itself should be populated later.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn build(self) -> Option<Blocks<T>>
Trait Implementations§
source§impl<T: Clone> Clone for BlocksBuilder<T>
impl<T: Clone> Clone for BlocksBuilder<T>
source§fn clone(&self) -> BlocksBuilder<T>
fn clone(&self) -> BlocksBuilder<T>
Returns a copy 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 moresource§impl<T: Debug> Debug for BlocksBuilder<T>
impl<T: Debug> Debug for BlocksBuilder<T>
source§impl<T: Default> Default for BlocksBuilder<T>
impl<T: Default> Default for BlocksBuilder<T>
source§fn default() -> BlocksBuilder<T>
fn default() -> BlocksBuilder<T>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq> PartialEq<BlocksBuilder<T>> for BlocksBuilder<T>
impl<T: PartialEq> PartialEq<BlocksBuilder<T>> for BlocksBuilder<T>
source§fn eq(&self, other: &BlocksBuilder<T>) -> bool
fn eq(&self, other: &BlocksBuilder<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.