Struct erg_parser::ast::Args
source · [−]pub struct Args { /* private fields */ }
Implementations
sourceimpl Args
impl Args
pub const fn new(
pos_args: Vec<PosArg>,
kw_args: Vec<KwArg>,
paren: Option<(Token, Token)>
) -> Self
pub const fn empty() -> Self
pub fn deconstruct(self) -> (Vec<PosArg>, Vec<KwArg>, Option<(Token, Token)>)
pub fn is_empty(&self) -> bool
pub fn kw_is_empty(&self) -> bool
pub fn pos_args(&self) -> &[PosArg]
pub fn kw_args(&self) -> &[KwArg]
pub fn into_iters(
self
) -> (impl IntoIterator<Item = PosArg>, impl IntoIterator<Item = KwArg>)
pub fn push_pos(&mut self, arg: PosArg)
pub fn remove_pos(&mut self, index: usize) -> PosArg
pub fn insert_pos(&mut self, index: usize, arg: PosArg)
pub fn push_kw(&mut self, arg: KwArg)
Trait Implementations
sourceimpl Locational for Args
impl Locational for Args
sourceimpl NestedDisplay for Args
impl NestedDisplay for Args
sourceimpl PartialEq<Args> for Args
impl PartialEq<Args> for Args
impl Eq for Args
impl StructuralEq for Args
impl StructuralPartialEq for Args
Auto Trait Implementations
impl !RefUnwindSafe for Args
impl !Send for Args
impl !Sync for Args
impl Unpin for Args
impl !UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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