pub trait VarArgs: Clone {
type OneMore<T: Clone>: VarArgs;
const CHECK: () = ();
// Required methods
fn append<T: Clone>(self, val: T) -> Self::OneMore<T>;
unsafe fn call_printf(
self,
format_str: *const c_uchar,
log_level_str: *const c_uchar,
) -> c_int;
}
Expand description
Represents a variable length list of arguments to printf.
See module level docs for a detailed description on how
how VarArgs
works and is used.
Provided Associated Constants§
Sourceconst CHECK: () = ()
const CHECK: () = ()
Used to check if there is space left in the argument list.
If the there is no space left in the argument list an Arguments<T>
’s
PushArg type will expand to a type where CHECK
us unable to be
compiled.
Required Associated Types§
Required Methods§
Sourcefn append<T: Clone>(self, val: T) -> Self::OneMore<T>
fn append<T: Clone>(self, val: T) -> Self::OneMore<T>
Append an additional argument to this argument list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.