Trait tract_nnef::internal::tract_downcast_rs::__std::fmt::Display 1.0.0[−][src]
Format trait for an empty format, {}
.
Display
is similar to Debug
, but Display
is for user-facing
output, and so cannot be derived.
For more information on formatters, see the module-level documentation.
Examples
Implementing Display
on a type:
use std::fmt; struct Point { x: i32, y: i32, } impl fmt::Display for Point { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "({}, {})", self.x, self.y) } } let origin = Point { x: 0, y: 0 }; assert_eq!(format!("The origin is: {}", origin), "The origin is: (0, 0)");
Required methods
pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
[src]
Formats the value using the given formatter.
Examples
use std::fmt; struct Position { longitude: f32, latitude: f32, } impl fmt::Display for Position { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "({}, {})", self.longitude, self.latitude) } } assert_eq!("(1.987, 2.983)", format!("{}", Position { longitude: 1.987, latitude: 2.983, }));
Implementations on Foreign Types
impl Display for bool
[src]
impl Display for u64
[src]
impl Display for char
[src]
impl Display for i32
[src]
impl Display for u8
[src]
impl Display for Utf8Lossy
[src]
impl Display for i16
[src]
impl Display for u16
[src]
impl Display for u32
[src]
impl<'_, T> Display for &'_ mut T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl Display for !
[src]
impl Display for str
[src]
impl<'_, T> Display for &'_ T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl Display for i8
[src]
impl Display for isize
[src]
impl Display for i128
[src]
impl Display for usize
[src]
impl Display for f32
[src]
impl Display for f64
[src]
impl<'a> Display for EscapeAscii<'a>
[src]
impl Display for u128
[src]
impl Display for i64
[src]
impl Display for LevelFilter
[src]
impl Display for SetLoggerError
[src]
impl Display for ParseLevelError
[src]
impl Display for Level
[src]
impl<T> Display for Complex<T> where
T: Display + Num + PartialOrd<T> + Clone,
[src]
T: Display + Num + PartialOrd<T> + Clone,
impl<E> Display for ParseComplexError<E> where
E: Display,
[src]
E: Display,
impl Display for f16
[src]
impl Display for bf16
[src]
impl<I> Display for VerboseError<I> where
I: Display,
[src]
I: Display,
impl<E> Display for Err<E> where
E: Debug,
[src]
E: Debug,
impl<I> Display for Error<I> where
I: Display,
[src]
I: Display,
The Display implementation allows the std::error::Error implementation
impl<O, T> Display for BitVec<O, T> where
O: BitOrder,
T: BitStore,
O: BitOrder,
T: BitStore,
impl<R> Display for BitPos<R> where
R: BitRegister,
R: BitRegister,
impl<O, T> Display for BitSlice<O, T> where
O: BitOrder,
T: BitStore,
O: BitOrder,
T: BitStore,
impl<R> Display for BitSel<R> where
R: BitRegister,
R: BitRegister,
impl<O, V> Display for BitArray<O, V> where
O: BitOrder,
V: BitView,
O: BitOrder,
V: BitView,
impl<R> Display for BitMask<R> where
R: BitRegister,
R: BitRegister,
impl<O, T> Display for BitBox<O, T> where
O: BitOrder,
T: BitStore,
O: BitOrder,
T: BitStore,
impl<R> Display for BitTail<R> where
R: BitRegister,
R: BitRegister,
impl<R> Display for BitIdx<R> where
R: BitRegister,
R: BitRegister,
impl<T> Display for FmtLowerExp<T> where
T: LowerExp + Display,
T: LowerExp + Display,
impl<T> Display for FmtPointer<T> where
T: Pointer + Display,
T: Pointer + Display,
impl<T> Display for FmtUpperExp<T> where
T: UpperExp + Display,
T: UpperExp + Display,
impl<T> Display for FmtBinary<T> where
T: Binary + Display,
T: Binary + Display,
impl<T> Display for FmtDisplay<T> where
T: Display,
T: Display,
impl<T> Display for FmtLowerHex<T> where
T: LowerHex + Display,
T: LowerHex + Display,
impl<T> Display for FmtUpperHex<T> where
T: UpperHex + Display,
T: UpperHex + Display,
impl<T> Display for FmtOctal<T> where
T: Octal + Display,
T: Octal + Display,
impl<A> Display for ArrayString<A> where
A: Array<Item = u8> + Copy,
[src]
A: Array<Item = u8> + Copy,
impl<T> Display for CapacityError<T>
[src]
impl Display for FileTime
impl Display for UnsupportedPlatformError
impl Display for Error
[src]
impl Display for CompressError
[src]
impl Display for DecompressError
[src]
Loading content...Implementors
impl Display for TDim
impl Display for CollectionAllocErr
impl Display for MatrixStoreSpec
impl Display for SliceInfoElem
[src]
impl Display for TryReserveError
[src]
impl Display for Infallible
1.34.0[src]
impl Display for VarError
[src]
impl Display for IpAddr
1.7.0[src]
impl Display for SocketAddr
[src]
impl Display for RecvTimeoutError
1.15.0[src]
impl Display for TryRecvError
[src]
impl Display for Blob
impl Display for tract_nnef::internal::f16
impl Display for tract_nnef::internal::tract_data::anyhow::Error
[src]
impl Display for ShapeError
[src]
impl Display for tract_nnef::internal::tract_num_traits::ParseFloatError
[src]
impl Display for AllocError
[src]
impl Display for LayoutError
1.28.0[src]
impl Display for Box<dyn Op + 'static, Global>
[src]
impl Display for Box<dyn TypedOp + 'static, Global>
[src]
impl Display for String
[src]
impl Display for TryFromSliceError
1.36.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::ascii::EscapeDefault
1.39.0[src]
impl Display for Backtrace
[src]
impl Display for BorrowError
1.13.0[src]
impl Display for BorrowMutError
1.13.0[src]
impl Display for CharTryFromError
1.34.0[src]
impl Display for DecodeUtf16Error
1.9.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::char::EscapeDebug
1.20.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::char::EscapeDefault
1.16.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::char::EscapeUnicode
1.16.0[src]
impl Display for ParseCharError
1.20.0[src]
impl Display for ToLowercase
1.16.0[src]
impl Display for ToUppercase
1.16.0[src]
impl Display for JoinPathsError
[src]
impl Display for FromBytesWithNulError
1.17.0[src]
impl Display for FromVecWithNulError
[src]
impl Display for IntoStringError
1.7.0[src]
impl Display for NulError
[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::io::Error
[src]
impl Display for AddrParseError
1.4.0[src]
impl Display for Ipv4Addr
[src]
impl Display for Ipv6Addr
[src]
Write an Ipv6Addr, conforming to the canonical style described by RFC 5952.
impl Display for SocketAddrV4
[src]
impl Display for SocketAddrV6
[src]
impl Display for NonZeroI8
1.34.0[src]
impl Display for NonZeroI16
1.34.0[src]
impl Display for NonZeroI32
1.34.0[src]
impl Display for NonZeroI64
1.34.0[src]
impl Display for NonZeroI128
1.34.0[src]
impl Display for NonZeroIsize
1.34.0[src]
impl Display for NonZeroU8
1.28.0[src]
impl Display for NonZeroU16
1.28.0[src]
impl Display for NonZeroU32
1.28.0[src]
impl Display for NonZeroU64
1.28.0[src]
impl Display for NonZeroU128
1.28.0[src]
impl Display for NonZeroUsize
1.28.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::num::ParseFloatError
[src]
impl Display for ParseIntError
[src]
impl Display for TryFromIntError
1.34.0[src]
impl Display for StripPrefixError
1.7.0[src]
impl Display for ExitStatus
[src]
impl Display for ParseBoolError
[src]
impl Display for Utf8Error
[src]
impl Display for FromUtf8Error
[src]
impl Display for FromUtf16Error
[src]
impl Display for RecvError
[src]
impl Display for AccessError
1.26.0[src]
impl Display for SystemTimeError
1.8.0[src]
impl Display for tract_nnef::internal::tract_downcast_rs::__std::fmt::Error
[src]
impl<'_> Display for Location<'_>
1.26.0[src]
impl<'_> Display for PanicInfo<'_>
1.26.0[src]
impl<'_> Display for Display<'_>
[src]
impl<'_> Display for Arguments<'_>
[src]
impl<'_, B> Display for Cow<'_, B> where
B: Display + ToOwned + ?Sized,
<B as ToOwned>::Owned: Display,
[src]
B: Display + ToOwned + ?Sized,
<B as ToOwned>::Owned: Display,
impl<'_, T> Display for Ref<'_, T> where
T: Display + ?Sized,
1.20.0[src]
T: Display + ?Sized,
impl<'_, T> Display for RefMut<'_, T> where
T: Display + ?Sized,
1.20.0[src]
T: Display + ?Sized,
impl<'_, T> Display for MutexGuard<'_, T> where
T: Display + ?Sized,
1.20.0[src]
T: Display + ?Sized,
impl<'_, T> Display for RwLockReadGuard<'_, T> where
T: Display + ?Sized,
1.20.0[src]
T: Display + ?Sized,
impl<'_, T> Display for RwLockWriteGuard<'_, T> where
T: Display + ?Sized,
1.20.0[src]
T: Display + ?Sized,
impl<'a> Display for tract_nnef::internal::tract_downcast_rs::__std::str::EscapeDebug<'a>
1.34.0[src]
impl<'a> Display for tract_nnef::internal::tract_downcast_rs::__std::str::EscapeDefault<'a>
1.34.0[src]
impl<'a> Display for tract_nnef::internal::tract_downcast_rs::__std::str::EscapeUnicode<'a>
1.34.0[src]
impl<'a, A, S, D> Display for ArrayBase<S, D> where
D: Dimension,
A: Display,
S: Data<Elem = A>,
[src]
D: Dimension,
A: Display,
S: Data<Elem = A>,
Format the array using Display
and apply the formatting parameters used
to each element.
The array is shown in multiline style.
impl<'a, I> Display for Format<'a, I> where
I: Iterator,
<I as Iterator>::Item: Display,
[src]
I: Iterator,
<I as Iterator>::Item: Display,
impl<'a, I, F> Display for FormatWith<'a, I, F> where
F: FnMut(<I as Iterator>::Item, &mut dyn FnMut(&dyn Display)) -> Result<(), Error>,
I: Iterator,
[src]
F: FnMut(<I as Iterator>::Item, &mut dyn FnMut(&dyn Display)) -> Result<(), Error>,
I: Iterator,
impl<'a, K, V> Display for tract_nnef::internal::tract_downcast_rs::__std::collections::btree_map::OccupiedError<'a, K, V> where
K: Debug + Ord,
V: Debug,
[src]
K: Debug + Ord,
V: Debug,
impl<'a, K, V> Display for tract_nnef::internal::tract_downcast_rs::__std::collections::hash_map::OccupiedError<'a, K, V> where
K: Debug,
V: Debug,
[src]
K: Debug,
V: Debug,
impl<F, O> Display for Graph<F, O> where
O: Debug + Display + AsRef<dyn Op + 'static> + AsMut<dyn Op + 'static> + Clone + 'static + Hash,
F: Fact + Hash + Clone + 'static,
[src]
O: Debug + Display + AsRef<dyn Op + 'static> + AsMut<dyn Op + 'static> + Clone + 'static + Hash,
F: Fact + Hash + Clone + 'static,
impl<F, O> Display for Node<F, O> where
O: Hash + Display,
F: Fact + Hash,
[src]
O: Hash + Display,
F: Fact + Hash,
impl<I> Display for ExactlyOneError<I> where
I: Iterator,
[src]
I: Iterator,
impl<K, TC, TI> Display for MatMatMulImpl<K, TC, TI> where
K: MatMatMulKer<TI>,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TC: Copy + Debug + 'static,
K: MatMatMulKer<TI>,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TC: Copy + Debug + 'static,
impl<L, R> Display for Either<L, R> where
R: Display,
L: Display,
[src]
R: Display,
L: Display,
impl<P> Display for Pin<P> where
P: Display,
1.33.0[src]
P: Display,
impl<T> Display for TryLockError<T>
[src]
impl<T> Display for TrySendError<T>
[src]
impl<T> Display for Arc<T> where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> Display for Wrapping<T> where
T: Display,
1.10.0[src]
T: Display,
impl<T> Display for Rc<T> where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> Display for SendError<T>
[src]
impl<T> Display for PoisonError<T>
[src]
impl<T, A> Display for Box<T, A> where
T: Display + ?Sized,
A: Allocator,
[src]
T: Display + ?Sized,
A: Allocator,