pub trait PrintfArgument: PrintfArgumentPrivate + Copy {
    type CPrintfType;
Show 12 associated constants and 1 method const IS_CHAR: bool = false; const IS_SHORT: bool = false; const IS_INT: bool = false; const IS_LONG: bool = false; const IS_LONG_LONG: bool = false; const IS_SIZE: bool = false; const IS_MAX: bool = false; const IS_PTRDIFF: bool = false; const IS_SIGNED: bool = false; const IS_FLOAT: bool = false; const IS_C_STRING: bool = false; const IS_POINTER: bool = false; fn as_c_val(self) -> Self::CPrintfType;
}
Expand description

A Rust-side argument to a safe wrapper around a printf(3)-like function.

This is a sealed trait; consumers of this crate are not allowed to create their own impls in order to unconditionally preserve safety.

Required Associated Types

The C type corresponding to Self that we should really send as an argument to a printf(3)-like function.

Provided Associated Constants

Whether the type is consistent with C’s char.

Whether the type is consistent with C’s short int.

Whether the type is consistent with C’s int.

Whether the type is consistent with C’s long int.

Whether the type is consistent with C’s long long int.

Available on crate feature libc only.

Whether the type is consistent with C’s size_t.

Available on crate feature libc only.

Whether the type is consistent with C’s intmax_t.

Available on crate feature libc only.

Whether the type is consistent with C’s ptrdiff_t.

Whether the type is a signed integer type, as opposed to unsigned.

Whether the type is floating-point.

Whether the type is a null-terminated string.

Whether the type is a pointer.

Required Methods

Converts self to a value suitable for sending to printf(3).

Implementations on Foreign Types

Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.
Available on crate feature libc only.

Implementors