Struct cri_ref::native_cbor::NativeCBORCriRef
source · [−]pub struct NativeCBORCriRef { /* private fields */ }Expand description
A CRI reference whose implementation is as close as possible to the CDDL specification, backed by heap memory.
(Not that this’d be ideal for use, but it’s what one would get from naïve CBOR implementations).
Trait Implementations
sourceimpl Clone for NativeCBORCriRef
impl Clone for NativeCBORCriRef
sourcefn clone(&self) -> NativeCBORCriRef
fn clone(&self) -> NativeCBORCriRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl CriBase for NativeCBORCriRef
impl CriBase for NativeCBORCriRef
type Scheme<'a>
where
Self: 'a = &'a Scheme
type Host<'a>
where
Self: 'a = &'a Host
type PathItem<'a>
where
Self: 'a = &'a Pet<PATH_UE>
type PathIter<'a>
where
Self: 'a = impl Iterator<Item = <NativeCBORCriRef as CriBase>::PathItem<'a>> + ExactSizeIterator
type QueryItem<'a>
where
Self: 'a = &'a Pet<QUERY_UE>
type QueryIter<'a>
where
Self: 'a = impl Iterator<Item = <NativeCBORCriRef as CriBase>::QueryItem<'a>>
type FragmentItem<'a>
where
Self: 'a = &'a Pet<FRAGMENT_UE>
type UserInfoItem<'a>
where
Self: 'a = &'a Pet<HOST_UE>
fn path(&self) -> Self::PathIter<'_>
fn query(&self) -> Self::QueryIter<'_>
fn fragment(&self) -> Option<Self::FragmentItem<'_>>
fn userinfo(&self) -> Option<Self::UserInfoItem<'_>>
fn host(&self) -> Self::Host<'_>
fn port(&self) -> Option<u16>
sourceimpl CriRef for NativeCBORCriRef
impl CriRef for NativeCBORCriRef
sourceimpl Debug for NativeCBORCriRef
impl Debug for NativeCBORCriRef
sourceimpl<'a> TryFrom<&'a [u8]> for NativeCBORCriRef
impl<'a> TryFrom<&'a [u8]> for NativeCBORCriRef
sourceimpl<'a> TryFrom<NativeCBORCriRef> for NativeCBORCri
impl<'a> TryFrom<NativeCBORCriRef> for NativeCBORCri
type Error = RefIsRelative
type Error = RefIsRelative
The type returned in the event of a conversion error.
sourcefn try_from(s: NativeCBORCriRef) -> Result<Self, RefIsRelative>
fn try_from(s: NativeCBORCriRef) -> Result<Self, RefIsRelative>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NativeCBORCriRef
impl Send for NativeCBORCriRef
impl Sync for NativeCBORCriRef
impl Unpin for NativeCBORCriRef
impl UnwindSafe for NativeCBORCriRef
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