Struct erg_parser::ast::ConstArgs
source · [−]pub struct ConstArgs { /* private fields */ }
Implementations
sourceimpl ConstArgs
impl ConstArgs
pub const fn new(
pos_args: Vec<ConstPosArg>,
kw_args: Vec<ConstKwArg>,
paren: Option<(Token, Token)>
) -> Self
pub const fn empty() -> Self
pub fn is_empty(&self) -> bool
pub fn pos_args(&self) -> impl Iterator<Item = &ConstPosArg>
pub fn kw_args(&self) -> impl Iterator<Item = &ConstKwArg>
pub fn into_iters(
self
) -> (impl IntoIterator<Item = ConstPosArg>, impl IntoIterator<Item = ConstKwArg>)
pub fn push_pos(&mut self, arg: ConstPosArg)
pub fn push_kw(&mut self, arg: ConstKwArg)
Trait Implementations
sourceimpl Locational for ConstArgs
impl Locational for ConstArgs
sourceimpl NestedDisplay for ConstArgs
impl NestedDisplay for ConstArgs
impl Eq for ConstArgs
impl StructuralEq for ConstArgs
impl StructuralPartialEq for ConstArgs
Auto Trait Implementations
impl RefUnwindSafe for ConstArgs
impl !Send for ConstArgs
impl !Sync for ConstArgs
impl Unpin for ConstArgs
impl UnwindSafe for ConstArgs
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