Enum imap_codec::core::IString
source · pub enum IString<'a> {
Literal(Literal<'a>),
Quoted(Quoted<'a>),
}
Expand description
Either a quoted string or a literal.
Note: The empty string is represented as either “” (a quoted string with zero characters between double quotes) or as {0} followed by CRLF (a literal with an octet count of 0).
ABNF definition
string = quoted / literal
; ^^^^^^ ^^^^^^^
; | |
; | See `Literal`
; See `Quoted`
Variants§
Implementations§
Trait Implementations§
source§impl<'a, 'arbitrary> Arbitrary<'arbitrary> for IString<'a>where
'arbitrary: 'a,
impl<'a, 'arbitrary> Arbitrary<'arbitrary> for IString<'a>where 'arbitrary: 'a,
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<IString<'a>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<IString<'a>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§impl<'de, 'a> Deserialize<'de> for IString<'a>
impl<'de, 'a> Deserialize<'de> for IString<'a>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<IString<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<IString<'a>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> IntoBoundedStatic for IString<'a>
impl<'a> IntoBoundedStatic for IString<'a>
source§fn into_static(self) -> <IString<'a> as IntoBoundedStatic>::Static
fn into_static(self) -> <IString<'a> as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<IString<'a>> for IString<'a>
impl<'a> PartialEq<IString<'a>> for IString<'a>
source§impl<'a> Serialize for IString<'a>
impl<'a> Serialize for IString<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ToBoundedStatic for IString<'a>
impl<'a> ToBoundedStatic for IString<'a>
impl<'a> Eq for IString<'a>
impl<'a> StructuralEq for IString<'a>
impl<'a> StructuralPartialEq for IString<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for IString<'a>
impl<'a> Send for IString<'a>
impl<'a> Sync for IString<'a>
impl<'a> Unpin for IString<'a>
impl<'a> UnwindSafe for IString<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more