pub struct Blocks(/* private fields */);
Expand description
Storage for basic blocks within the DFG.
Implementations§
Source§impl Blocks
impl Blocks
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Get the total number of basic blocks created in this function, whether they are currently inserted in the layout or not.
This is intended for use with SecondaryMap::with_capacity
.
Sourcepub fn reserve(&mut self, additional: usize)
pub fn reserve(&mut self, additional: usize)
Reserves capacity for at least additional
more elements to be
inserted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Blocks
impl<'de> Deserialize<'de> for Blocks
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Blocks
Auto Trait Implementations§
impl Freeze for Blocks
impl RefUnwindSafe for Blocks
impl Send for Blocks
impl Sync for Blocks
impl Unpin for Blocks
impl UnwindSafe for Blocks
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