Lines Matching defs:fmt
3 use std::fmt;
40 /// Get a value from a type implementing `std::fmt::Debug`.
48 /// Get a value from a type implementing `std::fmt::Display`.
133 /// # use std::fmt::Debug;
165 /// Get a value from a type implementing `std::fmt::Debug`.
168 T: fmt::Debug + 'static,
175 /// Get a value from a type implementing `std::fmt::Display`.
178 T: fmt::Display + 'static,
218 /// Get a value from a type implementing `std::fmt::Debug`.
221 T: fmt::Debug,
228 /// Get a value from a type implementing `std::fmt::Display`.
231 T: fmt::Display,
260 /// Get a value from a dynamic `std::fmt::Debug`.
261 pub fn from_dyn_debug(value: &'v dyn fmt::Debug) -> Self {
267 /// Get a value from a dynamic `std::fmt::Display`.
268 pub fn from_dyn_display(value: &'v dyn fmt::Display) -> Self {
383 impl<'v> fmt::Debug for Value<'v> {
384 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
385 fmt::Debug::fmt(&self.inner, f)
389 impl<'v> fmt::Display for Value<'v> {
390 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
391 fmt::Display::fmt(&self.inner, f)
395 impl ToValue for dyn fmt::Debug {
401 impl ToValue for dyn fmt::Display {
652 /// The `Value` may be formatted using its `fmt::Debug` or `fmt::Display` implementation,