pub struct VaList<'a> { /* private fields */ }🔬This is a nightly-only experimental API. (
c_variadic #44930)Expand description
A variable argument list, equivalent to va_list in C.
Implementations§
Source§impl<'f> VaList<'f>
impl<'f> VaList<'f>
Sourcepub unsafe fn arg<T>(&mut self) -> Twhere
T: VaArgSafe,
🔬This is a nightly-only experimental API. (c_variadic #44930)
pub unsafe fn arg<T>(&mut self) -> Twhere
T: VaArgSafe,
c_variadic #44930)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> Freeze for VaList<'a>
impl<'a> RefUnwindSafe for VaList<'a>
impl<'a> !Send for VaList<'a>
impl<'a> !Sync for VaList<'a>
impl<'a> Unpin for VaList<'a>
impl<'a> UnwindSafe for VaList<'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