pub struct EncodedText<'a> { /* private fields */ }Expand description
Base64 text whose UTF-8 and absence of controls have already been validated. Equality compares the encoded form: padded and unpadded spellings can decode to the same text and still compare unequal.
Implementations§
Source§impl<'a> EncodedText<'a>
impl<'a> EncodedText<'a>
Sourcepub const fn decoded_len(self) -> usize
pub const fn decoded_len(self) -> usize
Exact output capacity needed to decode this value.
Sourcepub fn decode_into(self, output: &mut [u8]) -> Result<&str, Error>
pub fn decode_into(self, output: &mut [u8]) -> Result<&str, Error>
Decodes into caller-owned storage, returning a UTF-8 view of that storage.
§Errors
Returns Error::BufferTooSmall when the destination is too small.
Trait Implementations§
Source§impl<'a> Clone for EncodedText<'a>
impl<'a> Clone for EncodedText<'a>
impl<'a> Copy for EncodedText<'a>
Source§impl<'a> Debug for EncodedText<'a>
impl<'a> Debug for EncodedText<'a>
impl<'a> Eq for EncodedText<'a>
Source§impl<'a> PartialEq for EncodedText<'a>
impl<'a> PartialEq for EncodedText<'a>
impl<'a> StructuralPartialEq for EncodedText<'a>
Auto Trait Implementations§
impl<'a> Freeze for EncodedText<'a>
impl<'a> RefUnwindSafe for EncodedText<'a>
impl<'a> Send for EncodedText<'a>
impl<'a> Sync for EncodedText<'a>
impl<'a> Unpin for EncodedText<'a>
impl<'a> UnsafeUnpin for EncodedText<'a>
impl<'a> UnwindSafe for EncodedText<'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