Struct erg_parser::token::TokenStream
source · pub struct TokenStream(/* private fields */);
Implementations§
source§impl TokenStream
impl TokenStream
pub const fn new(v: VecDeque<Token>) -> TokenStream
pub fn empty() -> TokenStream
pub fn with_capacity(capacity: usize) -> TokenStream
Trait Implementations§
source§impl Clone for TokenStream
impl Clone for TokenStream
source§fn clone(&self) -> TokenStream
fn clone(&self) -> TokenStream
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 TokenStream
impl Debug for TokenStream
source§impl Default for TokenStream
impl Default for TokenStream
source§fn default() -> TokenStream
fn default() -> TokenStream
Returns the “default value” for a type. Read more
source§impl DequeStream<Token> for TokenStream
impl DequeStream<Token> for TokenStream
fn payload(self) -> VecDeque<Token>
fn ref_payload(&self) -> &VecDeque<Token>
fn ref_mut_payload(&mut self) -> &mut VecDeque<Token>
fn is_empty(&self) -> bool
fn push(&mut self, elem: T)
fn push_front(&mut self, elem: T)
fn pop_front(&mut self) -> Option<T>
fn get(&self, idx: usize) -> Option<&T>
fn first(&self) -> Option<&T>
fn last(&self) -> Option<&T>
fn iter(&self) -> Iter<'_, T>
fn len(&self) -> usize
source§impl Display for TokenStream
impl Display for TokenStream
source§impl FromIterator<Token> for TokenStream
impl FromIterator<Token> for TokenStream
source§impl Index<usize> for TokenStream
impl Index<usize> for TokenStream
source§impl IntoIterator for TokenStream
impl IntoIterator for TokenStream
Auto Trait Implementations§
impl Freeze for TokenStream
impl RefUnwindSafe for TokenStream
impl Send for TokenStream
impl Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
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
)