Struct erg_compiler::hir::RecordAttrs
source · [−]pub struct RecordAttrs(_);
Implementations
sourceimpl RecordAttrs
impl RecordAttrs
pub const fn new(v: Vec<Def>) -> RecordAttrs
pub const fn empty() -> RecordAttrs
pub fn with_capacity(capacity: usize) -> RecordAttrs
Trait Implementations
sourceimpl Clone for RecordAttrs
impl Clone for RecordAttrs
sourcefn clone(&self) -> RecordAttrs
fn clone(&self) -> RecordAttrs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecordAttrs
impl Debug for RecordAttrs
sourceimpl Default for RecordAttrs
impl Default for RecordAttrs
sourcefn default() -> RecordAttrs
fn default() -> RecordAttrs
Returns the “default value” for a type. Read more
sourceimpl Display for RecordAttrs
impl Display for RecordAttrs
sourceimpl Index<usize> for RecordAttrs
impl Index<usize> for RecordAttrs
sourceimpl Locational for RecordAttrs
impl Locational for RecordAttrs
sourceimpl NestedDisplay for RecordAttrs
impl NestedDisplay for RecordAttrs
sourceimpl Stream<Def> for RecordAttrs
impl Stream<Def> for RecordAttrs
fn payload(self) -> Vec<Def>
fn ref_payload(&self) -> &Vec<Def>
fn ref_mut_payload(&mut self) -> &mut Vec<Def>
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 into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
Auto Trait Implementations
impl !RefUnwindSafe for RecordAttrs
impl !Send for RecordAttrs
impl !Sync for RecordAttrs
impl Unpin for RecordAttrs
impl !UnwindSafe for RecordAttrs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more