Struct erg_parser::ast::Namespaces
source · pub struct Namespaces(/* private fields */);
Implementations§
source§impl Namespaces
impl Namespaces
pub const fn new(v: Vec<Accessor>) -> Namespaces
pub fn empty() -> Namespaces
Trait Implementations§
source§impl Clone for Namespaces
impl Clone for Namespaces
source§fn clone(&self) -> Namespaces
fn clone(&self) -> Namespaces
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 Namespaces
impl Debug for Namespaces
source§impl Default for Namespaces
impl Default for Namespaces
source§impl Display for Namespaces
impl Display for Namespaces
source§impl FromIterator<Accessor> for Namespaces
impl FromIterator<Accessor> for Namespaces
source§impl Hash for Namespaces
impl Hash for Namespaces
source§impl Index<usize> for Namespaces
impl Index<usize> for Namespaces
source§impl IntoIterator for Namespaces
impl IntoIterator for Namespaces
source§impl Locational for Namespaces
impl Locational for Namespaces
source§impl NestedDisplay for Namespaces
impl NestedDisplay for Namespaces
source§impl PartialEq for Namespaces
impl PartialEq for Namespaces
source§impl Stream<Accessor> for Namespaces
impl Stream<Accessor> for Namespaces
fn payload(self) -> Vec<Accessor>
fn ref_payload(&self) -> &Vec<Accessor>
fn ref_mut_payload(&mut self) -> &mut Vec<Accessor>
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 Namespaces
impl StructuralPartialEq for Namespaces
Auto Trait Implementations§
impl Freeze for Namespaces
impl RefUnwindSafe for Namespaces
impl Send for Namespaces
impl Sync for Namespaces
impl Unpin for Namespaces
impl UnwindSafe for Namespaces
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)