Struct erg_compiler::hir::RecordAttrs
source · pub struct RecordAttrs(_);
Implementations§
source§impl RecordAttrs
impl RecordAttrs
pub const fn new(v: Vec<Def>) -> RecordAttrs
pub const fn empty() -> RecordAttrs
pub fn with_capacity(capacity: usize) -> RecordAttrs
source§impl RecordAttrs
impl RecordAttrs
Trait Implementations§
source§impl Clone for RecordAttrs
impl Clone for RecordAttrs
source§fn clone(&self) -> RecordAttrs
fn clone(&self) -> RecordAttrs
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 RecordAttrs
impl Debug for RecordAttrs
source§impl Default for RecordAttrs
impl Default for RecordAttrs
source§fn default() -> RecordAttrs
fn default() -> RecordAttrs
Returns the “default value” for a type. Read more
source§impl Display for RecordAttrs
impl Display for RecordAttrs
source§impl FromIterator<Def> for RecordAttrs
impl FromIterator<Def> for RecordAttrs
source§impl Hash for RecordAttrs
impl Hash for RecordAttrs
source§impl Index<usize> for RecordAttrs
impl Index<usize> for RecordAttrs
source§impl IntoIterator for RecordAttrs
impl IntoIterator for RecordAttrs
source§impl Locational for RecordAttrs
impl Locational for RecordAttrs
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 RecordAttrs
impl NestedDisplay for RecordAttrs
source§impl NoTypeDisplay for RecordAttrs
impl NoTypeDisplay for RecordAttrs
fn to_string_notype(&self) -> String
source§impl PartialEq<RecordAttrs> for RecordAttrs
impl PartialEq<RecordAttrs> for RecordAttrs
source§fn eq(&self, other: &RecordAttrs) -> bool
fn eq(&self, other: &RecordAttrs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.