Struct erg_parser::ast::ConstBlock
source · pub struct ConstBlock(_);
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§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for ConstBlock
impl NestedDisplay for ConstBlock
source§impl PartialEq<ConstBlock> for ConstBlock
impl PartialEq<ConstBlock> 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 ==
.