pub struct Args<'c, 'a> { /* private fields */ }Expand description
The arguments of a call to an extension function, worked out when asked for, as the core library’s are.
Implementations§
Source§impl<'a> Args<'_, 'a>
impl<'a> Args<'_, 'a>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn arity(&self, min: usize, max: usize) -> Result<(), String>
pub fn arity(&self, min: usize, max: usize) -> Result<(), String>
An error unless there are min to max arguments.
Sourcepub fn string(&self, i: usize) -> Result<String, String>
pub fn string(&self, i: usize) -> Result<String, String>
Argument i, converted as string() converts it.
pub fn doc(&self) -> Doc<'a>
Auto Trait Implementations§
impl<'c, 'a> !RefUnwindSafe for Args<'c, 'a>
impl<'c, 'a> !Send for Args<'c, 'a>
impl<'c, 'a> !Sync for Args<'c, 'a>
impl<'c, 'a> !UnwindSafe for Args<'c, 'a>
impl<'c, 'a> Forget for Args<'c, 'a>
impl<'c, 'a> Freeze for Args<'c, 'a>
impl<'c, 'a> Move for Args<'c, 'a>
impl<'c, 'a> Unpin for Args<'c, 'a>
impl<'c, 'a> UnsafeUnpin for Args<'c, 'a>
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