Enum cri_ref::native_cbor::Pet
source · [−]Expand description
Text or percent-encoded text.
The separator is encoded in the type. Instances should not contain that character in PET fields, but users should not (at least unsafely) rely on that.
Variants
JustText(String)
Alternating(Vec<(String, Box<[u8]>)>)
Trait Implementations
sourceimpl<'a, const UNESCAPED: u128> TextOrPet<UNESCAPED> for &'a Pet<UNESCAPED>
impl<'a, const UNESCAPED: u128> TextOrPet<UNESCAPED> for &'a Pet<UNESCAPED>
type UriEncoded<'b>
where
Self: 'b = &'b &'a Pet<UNESCAPED>
fn to_uri_component(&self) -> Self::UriEncoded<'_>
fn contains_unescaped(&self, needle: char) -> bool
fn equals(&self, other: &impl TextOrPet<UNESCAPED>) -> bool
fn iter_equals<O: TextOrPet<UNESCAPED>>(
s: impl Iterator<Item = Self>,
o: impl Iterator<Item = O>
) -> bool where
Self: Sized,
Auto Trait Implementations
impl<const UNESCAPED: u128> RefUnwindSafe for Pet<UNESCAPED>
impl<const UNESCAPED: u128> Send for Pet<UNESCAPED>
impl<const UNESCAPED: u128> Sync for Pet<UNESCAPED>
impl<const UNESCAPED: u128> Unpin for Pet<UNESCAPED>
impl<const UNESCAPED: u128> UnwindSafe for Pet<UNESCAPED>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more