pub enum CborText<'i> {
Definite(&'i str),
Indefinite(String),
}Expand description
Runtime representation of a CBOR text string.
Variants§
Definite(&'i str)
A definite-length UTF-8 string borrowed directly from the input.
Indefinite(String)
Flattened contents of an indefinite-length, fragmented string.
Implementations§
Source§impl<'i> CborText<'i>
impl<'i> CborText<'i>
pub fn arrow_Definite_0(self) -> &'i str
pub fn arrow_Indefinite_0(self) -> String
Trait Implementations§
Source§impl<'i> PartialEq for CborText<'i>
impl<'i> PartialEq for CborText<'i>
impl<'i> Eq for CborText<'i>
impl<'i> StructuralPartialEq for CborText<'i>
Auto Trait Implementations§
impl<'i> Freeze for CborText<'i>
impl<'i> RefUnwindSafe for CborText<'i>
impl<'i> Send for CborText<'i>
impl<'i> Sync for CborText<'i>
impl<'i> Unpin for CborText<'i>
impl<'i> UnsafeUnpin for CborText<'i>
impl<'i> UnwindSafe for CborText<'i>
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