pub struct VaList<'a, 'f>where
'f: 'a,{ /* private fields */ }🔬This is a nightly-only experimental API. (
c_variadic)Expand description
A wrapper for a va_list
Methods from Deref<Target = VaListImpl<'f>>§
Sourcepub fn as_va_list<'a>(&'a mut self) -> VaList<'a, 'f>
🔬This is a nightly-only experimental API. (c_variadic)
pub fn as_va_list<'a>(&'a mut self) -> VaList<'a, 'f>
c_variadic)Converts a VaListImpl into a VaList that is binary-compatible with C’s va_list.
Sourcepub unsafe fn arg<T>(&mut self) -> Twhere
T: VaArgSafe,
🔬This is a nightly-only experimental API. (c_variadic)
pub unsafe fn arg<T>(&mut self) -> Twhere
T: VaArgSafe,
c_variadic)Advance to and read the next variable argument.
§Safety
This function is only sound to call when:
- there is a next variable argument available.
- the next argument’s type must be ABI-compatible with the type
T. - the next argument must have a properly initialized value of type
T.
Calling this function with an incompatible type, an invalid value, or when there are no more variable arguments, is unsound.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'f> Freeze for VaList<'a, 'f>
impl<'a, 'f> RefUnwindSafe for VaList<'a, 'f>
impl<'a, 'f> !Send for VaList<'a, 'f>
impl<'a, 'f> !Sync for VaList<'a, 'f>
impl<'a, 'f> Unpin for VaList<'a, 'f>
impl<'a, 'f> !UnwindSafe for VaList<'a, 'f>
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