Struct cairo_lang_lowering::objects::blocks::Blocks
source · pub struct Blocks<T>(_);
Implementations§
source§impl<T: Default> Blocks<T>
impl<T: Default> Blocks<T>
pub fn new_errored(_diag_added: DiagnosticAdded) -> Self
pub fn get(&self) -> &Vec<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> BlocksIter<'_, T> ⓘ
pub fn root_block(&self) -> Maybe<&T>
pub fn has_root(&self) -> Maybe<()>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn push(&mut self, block: T) -> BlockId
pub fn reset_block(&mut self, block_id: BlockId, block: T)
Trait Implementations§
source§impl<'a, T> IntoIterator for &'a Blocks<T>
impl<'a, T> IntoIterator for &'a Blocks<T>
source§impl<T: PartialEq> PartialEq<Blocks<T>> for Blocks<T>
impl<T: PartialEq> PartialEq<Blocks<T>> for Blocks<T>
impl<T: Eq> Eq for Blocks<T>
impl<T> StructuralEq for Blocks<T>
impl<T> StructuralPartialEq for Blocks<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Blocks<T>where T: RefUnwindSafe,
impl<T> Send for Blocks<T>where T: Send,
impl<T> Sync for Blocks<T>where T: Sync,
impl<T> Unpin for Blocks<T>where T: Unpin,
impl<T> UnwindSafe for Blocks<T>where T: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.