pub struct EncodedString<'a> { /* private fields */ }
Expand description
The result of encode_string
.
Implementations§
Source§impl EncodedString<'_>
impl EncodedString<'_>
Sourcepub const fn len(&self) -> usize
pub const fn len(&self) -> usize
Returns the length of the encoded string.
The result is always non-zero.
Sourcepub fn iter(&self) -> EncodedStringIter<'_> ⓘ
pub fn iter(&self) -> EncodedStringIter<'_> ⓘ
Returns an iterator over the encoded string.
Sourcepub const fn as_parts(&self) -> (&LeftEncodeBytes, &[u8])
pub const fn as_parts(&self) -> (&LeftEncodeBytes, &[u8])
Returns the two parts of the encoded string.
Source§impl<'a> EncodedString<'a>
impl<'a> EncodedString<'a>
Sourcepub const fn to_parts(self) -> (LeftEncodeBytes, &'a [u8])
pub const fn to_parts(self) -> (LeftEncodeBytes, &'a [u8])
Returns the two parts of the encoded string.
Trait Implementations§
Source§impl<'a> Clone for EncodedString<'a>
impl<'a> Clone for EncodedString<'a>
Source§fn clone(&self) -> EncodedString<'a>
fn clone(&self) -> EncodedString<'a>
Returns a copy 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 EncodedString<'a>
impl<'a> Debug for EncodedString<'a>
Source§impl<'a> IntoIterator for &'a EncodedString<'a>
impl<'a> IntoIterator for &'a EncodedString<'a>
impl<'a> Copy for EncodedString<'a>
Auto Trait Implementations§
impl<'a> Freeze for EncodedString<'a>
impl<'a> RefUnwindSafe for EncodedString<'a>
impl<'a> Send for EncodedString<'a>
impl<'a> Sync for EncodedString<'a>
impl<'a> Unpin for EncodedString<'a>
impl<'a> UnwindSafe for EncodedString<'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