Lines Matching defs:fmt
156 use core::fmt;
1899 impl<T: fmt::Display + ?Sized, A: Allocator> fmt::Display for Box<T, A> {
1900 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1901 fmt::Display::fmt(&**self, f)
1906 impl<T: fmt::Debug + ?Sized, A: Allocator> fmt::Debug for Box<T, A> {
1907 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1908 fmt::Debug::fmt(&**self, f)
1913 impl<T: ?Sized, A: Allocator> fmt::Pointer for Box<T, A> {
1914 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1918 fmt::Pointer::fmt(&ptr, f)
2218 /// use std::fmt;
2224 /// impl fmt::Display for AnError {
2225 /// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2252 /// use std::fmt;
2258 /// impl fmt::Display for AnError {
2259 /// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2308 impl fmt::Display for StringError {
2309 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2310 fmt::Display::fmt(&self.0, f)
2315 impl fmt::Debug for StringError {
2316 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2317 fmt::Debug::fmt(&self.0, f)