pub struct ListCharString<'a>(/* private fields */);
Implementations§
Source§impl<'a> ListCharString<'a>
impl<'a> ListCharString<'a>
pub fn validate(value: impl AsRef<[u8]>) -> Result<(), ValidationError>
Sourcepub fn unvalidated<C>(inner: C) -> Self
Available on crate feature unvalidated
only.
pub fn unvalidated<C>(inner: C) -> Self
unvalidated
only.Constructs a list char string without validation.
§Warning: IMAP conformance
The caller must ensure that inner
is valid according to Self::validate
. Failing to do
so may create invalid/unparsable IMAP messages, or even produce unintended protocol flows.
Do not call this constructor with untrusted data.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for ListCharString<'a>
impl<'a> Arbitrary<'a> for ListCharString<'a>
Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl<'a> AsRef<[u8]> for ListCharString<'a>
impl<'a> AsRef<[u8]> for ListCharString<'a>
Source§impl<'a> Clone for ListCharString<'a>
impl<'a> Clone for ListCharString<'a>
Source§fn clone(&self) -> ListCharString<'a>
fn clone(&self) -> ListCharString<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ListCharString<'a>
impl<'a> Debug for ListCharString<'a>
Source§impl<'de, 'a> Deserialize<'de> for ListCharString<'a>
impl<'de, 'a> Deserialize<'de> for ListCharString<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Hash for ListCharString<'a>
impl<'a> Hash for ListCharString<'a>
Source§impl<'a> IntoBoundedStatic for ListCharString<'a>
impl<'a> IntoBoundedStatic for ListCharString<'a>
Source§type Static = ListCharString<'static>
type Static = ListCharString<'static>
The target type is bounded by the
'static
lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.Source§impl<'a> PartialEq for ListCharString<'a>
impl<'a> PartialEq for ListCharString<'a>
Source§impl<'a> Serialize for ListCharString<'a>
impl<'a> Serialize for ListCharString<'a>
Source§impl<'a> ToBoundedStatic for ListCharString<'a>
impl<'a> ToBoundedStatic for ListCharString<'a>
Source§impl<'a> TryFrom<&'a str> for ListCharString<'a>
impl<'a> TryFrom<&'a str> for ListCharString<'a>
Source§impl<'a> TryFrom<String> for ListCharString<'a>
impl<'a> TryFrom<String> for ListCharString<'a>
impl<'a> Eq for ListCharString<'a>
impl<'a> StructuralPartialEq for ListCharString<'a>
Auto Trait Implementations§
impl<'a> Freeze for ListCharString<'a>
impl<'a> RefUnwindSafe for ListCharString<'a>
impl<'a> Send for ListCharString<'a>
impl<'a> Sync for ListCharString<'a>
impl<'a> Unpin for ListCharString<'a>
impl<'a> UnwindSafe for ListCharString<'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