Trait artifact_app::dev_prefix::fmt::Display 1.0.0
[−]
[src]
pub trait Display { fn fmt(&self, f: &mut Formatter) -> Result<(), Error>; }
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 }; println!("The origin is: {}", origin);
Required Methods
Trait Implementations
impl Trait for Display + 'static + Send
impl Trait for Display + 'static + Sync
impl Trait for Display + 'static + Send + Sync
Implementors
impl Display for artifact_app::types::Error
impl Display for artifact_app::types::ErrorKind
impl<S> Display for UniCase<S> where S: Display
impl<S> Display for Host<S> where S: AsRef<str>
impl Display for ParseError
impl<'a, E> Display for PercentEncode<'a, E> where E: EncodeSet
impl Display for Url
impl Display for FromBase64Error
impl Display for FromHexError
impl Display for DecoderError
impl Display for rustc_serialize::json::ParserError
impl Display for EncoderError
impl Display for Json
impl<'a> Display for PrettyJson<'a>
impl<'a, T> Display for AsJson<'a, T> where T: Encodable
impl<'a, T> Display for AsPrettyJson<'a, T> where T: Encodable
impl Display for toml::parser::ParserError
impl Display for toml::Value
impl Display for toml::encoder::Error
impl Display for DecodeError
impl Display for FileTime
impl Display for LogLevel
impl Display for LogLevelFilter
impl Display for SetLoggerError
impl Display for ShutdownLoggerError
impl Display for serde::de::value::Error
impl Display for Type
impl Display for VarError
impl Display for JoinPathsError
impl Display for NulError
impl Display for IntoStringError
impl<W> Display for IntoInnerError<W>
impl Display for artifact_app::dev_prefix::io::Error
impl Display for CharsError
impl Display for IpAddr
impl Display for Ipv4Addr
impl Display for Ipv6Addr
impl Display for SocketAddr
impl Display for SocketAddrV4
impl Display for SocketAddrV6
impl Display for AddrParseError
impl<'a> Display for std::path::Display<'a>
impl Display for StripPrefixError
impl Display for ExitStatus
impl<T> Display for std::sync::mpsc::SendError<T>
impl<T> Display for TrySendError<T>
impl Display for RecvError
impl Display for TryRecvError
impl Display for RecvTimeoutError
impl Display for SystemTimeError
impl<T> Display for PoisonError<T>
impl<T> Display for TryLockError<T>
impl Display for Error
impl Display for LanguageTag
impl Display for Error
impl Display for InvalidChunkSize
impl Display for Changeset
impl Display for Void
impl<'a, T> Display for Display<'a, T> where T: ChainedError
impl Display for ErrorCode
impl Display for Error
impl Display for Value
impl<T> Display for Wrapping<T> where T: Display
impl Display for ParseFloatError
impl Display for TryFromIntError
impl Display for ParseIntError
impl Display for BorrowError
impl Display for BorrowMutError
impl Display for CharTryFromError
impl Display for EscapeUnicode
impl Display for EscapeDefault
impl Display for EscapeDebug
impl Display for ParseBoolError
impl Display for Utf8Error
impl<'a> Display for Arguments<'a>
impl Display for artifact_app::dev_prefix::fmt::Error
impl Display for !
impl Display for bool
impl Display for str
impl Display for char
impl Display for f32
impl Display for f64
impl Display for i8
impl Display for u8
impl Display for i16
impl Display for u16
impl Display for i32
impl Display for u32
impl Display for i64
impl Display for u64
impl Display for i128
impl Display for u128
impl Display for isize
impl Display for usize
impl<'a, T> Display for &'a T where T: Display + ?Sized
impl<'a, T> Display for &'a mut T where T: Display + ?Sized
impl Display for Expr
impl Display for Repeater
impl Display for CharClass
impl Display for ClassRange
impl Display for ByteClass
impl Display for ByteRange
impl Display for Error
impl Display for ErrorKind
impl<T> Display for Mime<T> where T: AsRef<[(Attr, Value)]>
impl Display for TopLevel
impl Display for SubLevel
impl Display for Attr
impl Display for mime::Value
impl<'n, 'e> Display for App<'n, 'e>
impl Display for Error
impl Display for Shell
impl Display for Expr
impl Display for Repeater
impl Display for CharClass
impl Display for ClassRange
impl Display for ByteClass
impl Display for ByteRange
impl Display for Error
impl Display for ErrorKind
impl Display for serde::de::value::Error
impl<'a> Display for Unexpected<'a>
impl<'a> Display for Expected + 'a
impl<'a, B> Display for Cow<'a, B> where B: Display + ToOwned + ?Sized,
B::Owned: Displayimpl Display for FromUtf8Error
impl Display for FromUtf16Error
impl Display for String
impl Display for collections::string::ParseError
impl Display for regex::error::Error
impl Display for regex::re_bytes::Regex
impl Display for regex::re_unicode::Regex
impl<'a> Display for ANSIString<'a>
impl<'a> Display for ANSIStrings<'a>
impl Display for Error
impl Display for Value
impl Display for Number
impl<'a, I, F> Display for Format<'a, I, F> where F: FnMut(I::Item, &mut FnMut(&Display)) -> Result<(), Error>,
I: Iteratorimpl<'a, I> Display for FormatDefault<'a, I> where I: Iterator,
I::Item: Displayimpl Display for ToLowercase
impl Display for ToUppercase
impl Display for DecodeUtf16Error
impl Display for BodyError
impl<'a> Display for ANSIGenericString<'a, str>
impl Display for Prefix
impl Display for Suffix
impl Display for Infix
impl<'a> Display for ANSIGenericStrings<'a, str>
impl Display for FmtError
impl Display for Error
impl Display for Regex
impl Display for artifact_app::dev_prefix::Regex
impl<T> Display for Box<T> where T: Display + ?Sized
impl<T> Display for Arc<T> where T: Display + ?Sized
impl<T> Display for Rc<T> where T: Display + ?Sized
impl Display for CleartextConnectError
impl Display for HttpError
impl<'a> Display for AttrVal<'a>
impl Display for Cookie
impl Display for hyper::error::Error
impl Display for Method
impl Display for AccessControlAllowCredentials
impl Display for AccessControlAllowOrigin
impl Display for RangeUnit
impl Display for CacheDirective
impl Display for ConnectionOption
impl Display for ContentDisposition
impl Display for ContentLength
impl Display for ContentRangeSpec
impl Display for hyper::header::common::host::Host
impl Display for IfRange
impl Display for Preference
impl Display for ByteRangeSpec
impl Display for Range
impl Display for ProtocolName
impl Display for Protocol
impl Display for Charset
impl Display for Encoding
impl Display for EntityTag
impl Display for HttpDate
impl Display for Quality
impl<T> Display for QualityItem<T> where T: Display
impl Display for ExtendedValue
impl Display for Headers
impl<'a> Display for HeaderView<'a>
impl<'a> Display for &'a HeaderFormat + 'static + Send + Sync
impl<'a, H> Display for HeaderFormatter<'a, H> where H: HeaderFormat
impl Display for StatusCode
impl Display for RequestUri
impl Display for HttpVersion
impl Display for Accept
impl Display for AccessControlAllowHeaders
impl Display for AccessControlAllowMethods
impl Display for AccessControlExposeHeaders
impl Display for AccessControlMaxAge
impl Display for AccessControlRequestHeaders
impl Display for AccessControlRequestMethod
impl Display for AcceptCharset
impl Display for AcceptEncoding
impl Display for AcceptLanguage
impl Display for AcceptRanges
impl Display for Allow
impl Display for Connection
impl Display for ContentEncoding
impl Display for ContentLanguage
impl Display for ContentRange
impl Display for ContentType
impl Display for Date
impl Display for ETag
impl Display for Expires
impl Display for From
impl Display for IfMatch
impl Display for IfModifiedSince
impl Display for IfNoneMatch
impl Display for IfUnmodifiedSince
impl Display for LastModified
impl Display for Location
impl Display for Referer
impl Display for Server
impl Display for TransferEncoding
impl Display for Upgrade
impl Display for UserAgent
impl Display for Vary
impl<'a> Display for TmFmt<'a>
impl Display for Duration
impl Display for OutOfRangeError
impl Display for SteadyTime
impl Display for time::ParseError
impl Display for LogError
impl Display for InitError
impl<T, E> Display for futures::stream::channel::SendError<T, E>
impl Display for Canceled
impl<T> Display for futures::sync::mpsc::SendError<T>
impl<T> Display for futures::unsync::mpsc::SendError<T>
impl Display for Loc
impl Display for ArtName