Lines Matching defs:fmt
3 use core::fmt;
486 // Adapts from `IdentFragment` to `fmt::Display` for use by the `format_ident!`
502 impl<T: IdentFragment> fmt::Display for IdentFragmentAdapter<T> {
503 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
504 IdentFragment::fmt(&self.0, f)
508 impl<T: IdentFragment + fmt::Octal> fmt::Octal for IdentFragmentAdapter<T> {
509 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
510 fmt::Octal::fmt(&self.0, f)
514 impl<T: IdentFragment + fmt::LowerHex> fmt::LowerHex for IdentFragmentAdapter<T> {
515 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
516 fmt::LowerHex::fmt(&self.0, f)
520 impl<T: IdentFragment + fmt::UpperHex> fmt::UpperHex for IdentFragmentAdapter<T> {
521 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
522 fmt::UpperHex::fmt(&self.0, f)
526 impl<T: IdentFragment + fmt::Binary> fmt::Binary for IdentFragmentAdapter<T> {
527 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
528 fmt::Binary::fmt(&self.0, f)