#[repr(C)]pub struct VaListImpl<'f> { /* private fields */ }
🔬This is a nightly-only experimental API. (
c_variadic
#44930)Expand description
x86_64 ABI implementation of a va_list
.
Implementations§
Source§impl<'f> VaListImpl<'f>
impl<'f> VaListImpl<'f>
Sourcepub fn as_va_list<'a>(&'a mut self) -> VaList<'a, 'f>
🔬This is a nightly-only experimental API. (c_variadic
#44930)
pub fn as_va_list<'a>(&'a mut self) -> VaList<'a, 'f>
c_variadic
#44930)Converts a VaListImpl
into a VaList
that is binary-compatible with C’s va_list
.
Source§impl<'f> VaListImpl<'f>
impl<'f> VaListImpl<'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 the next variable argument:
- has a type that is ABI-compatible with the type
T
- has a value that is 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§
Source§impl<'f> Clone for VaListImpl<'f>
impl<'f> Clone for VaListImpl<'f>
Source§fn clone(&self) -> VaListImpl<'f>
fn clone(&self) -> VaListImpl<'f>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'f> Debug for VaListImpl<'f>
impl<'f> Debug for VaListImpl<'f>
Auto Trait Implementations§
impl<'f> Freeze for VaListImpl<'f>
impl<'f> RefUnwindSafe for VaListImpl<'f>
impl<'f> !Send for VaListImpl<'f>
impl<'f> !Sync for VaListImpl<'f>
impl<'f> Unpin for VaListImpl<'f>
impl<'f> UnwindSafe for VaListImpl<'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