Struct erg_parser::ast::ConstBlock
source · pub struct ConstBlock(/* private fields */);
Implementations§
source§impl ConstBlock
impl ConstBlock
pub const fn new(v: Vec<ConstExpr>) -> ConstBlock
pub const fn empty() -> ConstBlock
pub fn with_capacity(capacity: usize) -> ConstBlock
source§impl ConstBlock
impl ConstBlock
Trait Implementations§
source§impl Clone for ConstBlock
impl Clone for ConstBlock
source§fn clone(&self) -> ConstBlock
fn clone(&self) -> ConstBlock
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 Debug for ConstBlock
impl Debug for ConstBlock
source§impl Default for ConstBlock
impl Default for ConstBlock
source§fn default() -> ConstBlock
fn default() -> ConstBlock
Returns the “default value” for a type. Read more
source§impl Display for ConstBlock
impl Display for ConstBlock
source§impl FromIterator<ConstExpr> for ConstBlock
impl FromIterator<ConstExpr> for ConstBlock
source§impl Hash for ConstBlock
impl Hash for ConstBlock
source§impl Index<usize> for ConstBlock
impl Index<usize> for ConstBlock
source§impl IntoIterator for ConstBlock
impl IntoIterator for ConstBlock
source§impl Locational for ConstBlock
impl Locational for ConstBlock
source§impl NestedDisplay for ConstBlock
impl NestedDisplay for ConstBlock
source§impl PartialEq for ConstBlock
impl PartialEq for ConstBlock
source§fn eq(&self, other: &ConstBlock) -> bool
fn eq(&self, other: &ConstBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Stream<ConstExpr> for ConstBlock
impl Stream<ConstExpr> for ConstBlock
fn payload(self) -> Vec<ConstExpr>
fn ref_payload(&self) -> &Vec<ConstExpr>
fn ref_mut_payload(&mut self) -> &mut Vec<ConstExpr>
fn clear(&mut self)
fn len(&self) -> usize
fn size(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, idx: usize, elem: T)
fn remove(&mut self, idx: usize) -> T
fn push(&mut self, elem: T)
fn append<S>(&mut self, s: &mut S)where
S: Stream<T>,
fn pop(&mut self) -> Option<T>
fn lpop(&mut self) -> Option<T>
fn get(&self, idx: usize) -> Option<&T>
fn get_mut(&mut self, idx: usize) -> Option<&mut T>
fn first(&self) -> Option<&T>
fn first_mut(&mut self) -> Option<&mut T>
fn last(&self) -> Option<&T>
fn last_mut(&mut self) -> Option<&mut T>
fn iter(&self) -> Iter<'_, T>
fn iter_mut(&mut self) -> IterMut<'_, T>
fn take_all(&mut self) -> Vec<T>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn split_off(&mut self, at: usize) -> Vec<T>
source§fn retain(&mut self, f: impl FnMut(&T) -> bool)
fn retain(&mut self, f: impl FnMut(&T) -> bool)
Remove all elements that don’t satisfy the predicate.
fn concat(self, other: Self) -> Self
impl Eq for ConstBlock
impl StructuralPartialEq for ConstBlock
Auto Trait Implementations§
impl Freeze for ConstBlock
impl RefUnwindSafe for ConstBlock
impl Send for ConstBlock
impl Sync for ConstBlock
impl Unpin for ConstBlock
impl UnwindSafe for ConstBlock
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