Lines Matching defs:fmt

5 use core::fmt::{self, Debug, Display};
129 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
131 TokenStream::Compiler(tts) => Display::fmt(&tts.clone().into_token_stream(), f),
132 TokenStream::Fallback(tts) => Display::fmt(tts, f),
252 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
254 TokenStream::Compiler(tts) => Debug::fmt(&tts.clone().into_token_stream(), f),
255 TokenStream::Fallback(tts) => Debug::fmt(tts, f),
282 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
284 LexError::Compiler(e) => Debug::fmt(e, f),
285 LexError::Fallback(e) => Debug::fmt(e, f),
288 Debug::fmt(&fallback, f)
295 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
297 LexError::Compiler(e) => Display::fmt(e, f),
298 LexError::Fallback(e) => Display::fmt(e, f),
301 Display::fmt(&fallback, f)
390 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
392 SourceFile::Compiler(a) => Debug::fmt(a, f),
393 SourceFile::Fallback(a) => Debug::fmt(a, f),
529 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
531 Span::Compiler(s) => Debug::fmt(s, f),
532 Span::Fallback(s) => Debug::fmt(s, f),
537 pub(crate) fn debug_span_field_if_nontrivial(debug: &mut fmt::DebugStruct, span: Span) {
634 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
636 Group::Compiler(group) => Display::fmt(group, formatter),
637 Group::Fallback(group) => Display::fmt(group, formatter),
643 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
645 Group::Compiler(group) => Debug::fmt(group, formatter),
646 Group::Fallback(group) => Debug::fmt(group, formatter),
731 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
733 Ident::Compiler(t) => Display::fmt(t, f),
734 Ident::Fallback(t) => Display::fmt(t, f),
740 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
742 Ident::Compiler(t) => Debug::fmt(t, f),
743 Ident::Fallback(t) => Debug::fmt(t, f),
915 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
917 Literal::Compiler(t) => Display::fmt(t, f),
918 Literal::Fallback(t) => Display::fmt(t, f),
924 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
926 Literal::Compiler(t) => Debug::fmt(t, f),
927 Literal::Fallback(t) => Debug::fmt(t, f),