Lines Matching refs:fmt
6 use crate::fmt::{self, Write};
53 impl fmt::Display for BStr {
67 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
83 impl fmt::Debug for BStr {
99 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
458 impl fmt::Display for CStr {
475 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
488 impl fmt::Debug for CStr {
506 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
612 CString::try_from_fmt(fmt!($($f)*))?.to_str()?
798 impl fmt::Write for RawFormatter {
799 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
850 impl fmt::Write for Formatter {
851 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
856 Err(fmt::Error) in write_str()
894 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()
959 impl fmt::Debug for CString {
960 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
961 fmt::Debug::fmt(&**self, f) in fmt()