Trait email_format::TryFrom
[−]
[src]
pub trait TryFrom<T>: Sized { type Error; fn try_from(_: T) -> Result<Self, Self::Error>; }
Attempt to construct Self
via a conversion (borrowed from rust std
)
This TryFrom trait is defined in the rust std library but is behind a feature gate. We place it here so that people using stable compilers can still use our crate. In the future, the std trait should be used.
Associated Types
type Error
The type returned in the event of a conversion error.
Required Methods
Implementors
impl<'a> TryFrom<&'a [u8]> for OrigDate
impl<'a> TryFrom<&'a str> for OrigDate
impl<'a> TryFrom<DateTime> for OrigDate
impl<'a> TryFrom<&'a Tm> for OrigDate
impl<'a, Tz: TimeZone> TryFrom<&'a DateTime<Tz>> for OrigDate where
Tz::Offset: Display,impl<'a> TryFrom<&'a [u8]> for From
impl<'a> TryFrom<&'a str> for From
impl<'a> TryFrom<MailboxList> for From
impl<'a> TryFrom<&'a [u8]> for Sender
impl<'a> TryFrom<&'a str> for Sender
impl<'a> TryFrom<Mailbox> for Sender
impl<'a> TryFrom<&'a [u8]> for ReplyTo
impl<'a> TryFrom<&'a str> for ReplyTo
impl<'a> TryFrom<AddressList> for ReplyTo
impl<'a> TryFrom<&'a [u8]> for To
impl<'a> TryFrom<&'a str> for To
impl<'a> TryFrom<AddressList> for To
impl<'a> TryFrom<&'a [u8]> for Cc
impl<'a> TryFrom<&'a str> for Cc
impl<'a> TryFrom<AddressList> for Cc
impl<'a> TryFrom<&'a [u8]> for Bcc
impl<'a> TryFrom<&'a str> for Bcc
impl<'a> TryFrom<AddressList> for Bcc
impl<'a> TryFrom<&'a [u8]> for MessageId
impl<'a> TryFrom<&'a str> for MessageId
impl<'a> TryFrom<MsgId> for MessageId
impl<'a> TryFrom<&'a [u8]> for InReplyTo
impl<'a> TryFrom<&'a str> for InReplyTo
impl<'a> TryFrom<Vec<MsgId>> for InReplyTo
impl<'a> TryFrom<&'a [u8]> for References
impl<'a> TryFrom<&'a str> for References
impl<'a> TryFrom<Vec<MsgId>> for References
impl<'a> TryFrom<&'a [u8]> for Subject
impl<'a> TryFrom<&'a str> for Subject
impl<'a> TryFrom<Unstructured> for Subject
impl<'a> TryFrom<&'a [u8]> for Comments
impl<'a> TryFrom<&'a str> for Comments
impl<'a> TryFrom<Unstructured> for Comments
impl<'a> TryFrom<&'a [u8]> for Keywords
impl<'a> TryFrom<&'a str> for Keywords
impl<'a> TryFrom<Vec<Phrase>> for Keywords
impl<'a> TryFrom<&'a [u8]> for ResentDate
impl<'a> TryFrom<&'a str> for ResentDate
impl<'a> TryFrom<DateTime> for ResentDate
impl<'a> TryFrom<&'a [u8]> for ResentFrom
impl<'a> TryFrom<&'a str> for ResentFrom
impl<'a> TryFrom<MailboxList> for ResentFrom
impl<'a> TryFrom<&'a [u8]> for ResentSender
impl<'a> TryFrom<&'a str> for ResentSender
impl<'a> TryFrom<Mailbox> for ResentSender
impl<'a> TryFrom<&'a [u8]> for ResentTo
impl<'a> TryFrom<&'a str> for ResentTo
impl<'a> TryFrom<AddressList> for ResentTo
impl<'a> TryFrom<&'a [u8]> for ResentCc
impl<'a> TryFrom<&'a str> for ResentCc
impl<'a> TryFrom<AddressList> for ResentCc
impl<'a> TryFrom<&'a [u8]> for ResentBcc
impl<'a> TryFrom<&'a str> for ResentBcc
impl<'a> TryFrom<AddressList> for ResentBcc
impl<'a> TryFrom<&'a [u8]> for ResentMessageId
impl<'a> TryFrom<&'a str> for ResentMessageId
impl<'a> TryFrom<MsgId> for ResentMessageId
impl<'a> TryFrom<&'a [u8]> for Received
impl<'a> TryFrom<&'a str> for Received
impl<'a> TryFrom<(ReceivedTokens, DateTime)> for Received
impl<'a> TryFrom<&'a [u8]> for Return
impl<'a> TryFrom<&'a str> for Return
impl<'a> TryFrom<Path> for Return
impl<'a> TryFrom<(FieldName, Unstructured)> for OptionalField
impl<'a, 'b> TryFrom<(&'a [u8], &'b [u8])> for OptionalField
impl<'a, 'b> TryFrom<(&'a str, &'b str)> for OptionalField
impl<'a> TryFrom<&'a [u8]> for Body
impl<'a> TryFrom<&'a str> for Body
impl<T> TryFrom<T> for T