pub struct Args(/* private fields */);Implementations§
Source§impl Args
impl Args
pub fn new() -> Self
pub fn has(&self, name: &str) -> bool
pub fn get(&self, name: &str) -> Option<&Arg>
pub fn get_index(&self, index: usize) -> Option<&Arg>
pub fn iter(&self) -> impl Iterator<Item = &Arg>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn extend(&mut self, other: Args)
pub fn merge(&self, other: &Args) -> Args
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Args
impl<'a> IntoIterator for &'a Args
Source§impl IntoIterator for Args
impl IntoIterator for Args
Source§impl ToTokens for Args
impl ToTokens for Args
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl !Send for Args
impl !Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.