pub struct CodeOther<'a>(/* private fields */);
Expand description
An (unknown) code.
It’s guaranteed that this type can’t represent any code from Code
.
Implementations§
Source§impl<'a> CodeOther<'a>
impl<'a> CodeOther<'a>
Sourcepub fn unvalidated<D>(data: D) -> Self
Available on crate feature unvalidated
only.
pub fn unvalidated<D>(data: D) -> Self
unvalidated
only.Constructs an unsupported code without validation.
§Warning: IMAP conformance
The caller must ensure that data
is valid. Failing to do so may create invalid/unparsable
IMAP messages, or even produce unintended protocol flows. Do not call this constructor with
untrusted data.
pub fn inner(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for CodeOther<'a>
impl<'a> Arbitrary<'a> for CodeOther<'a>
Source§fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(_: &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<'de, 'a> Deserialize<'de> for CodeOther<'a>
impl<'de, 'a> Deserialize<'de> for CodeOther<'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> IntoBoundedStatic for CodeOther<'a>
impl<'a> IntoBoundedStatic for CodeOther<'a>
Source§impl<'a> ToBoundedStatic for CodeOther<'a>
impl<'a> ToBoundedStatic for CodeOther<'a>
impl<'a> Eq for CodeOther<'a>
impl<'a> StructuralPartialEq for CodeOther<'a>
Auto Trait Implementations§
impl<'a> Freeze for CodeOther<'a>
impl<'a> RefUnwindSafe for CodeOther<'a>
impl<'a> Send for CodeOther<'a>
impl<'a> Sync for CodeOther<'a>
impl<'a> Unpin for CodeOther<'a>
impl<'a> UnwindSafe for CodeOther<'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