Struct VaList
struct VaList<'a> { ... }
A variable argument list, equivalent to va_list in C.
Implementations
impl<'f> VaList<'f>
unsafe fn arg<T: VaArgSafe>(self: &mut Self) -> TAdvance 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.
impl Debug for VaList<'_>
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
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>
impl<'f> Clone for VaList<'f>
fn clone(self: &Self) -> Self
impl<'f> Drop for VaList<'f>
fn drop(self: &mut Self)
impl<T> Any for VaList<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for VaList<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for VaList<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for VaList<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for VaList<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for VaList<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for VaList<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for VaList<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>