Struct cri_ref::native_cbor::NativeCBORCri
source · [−]pub struct NativeCBORCri(_);Expand description
A CRI reference that is known to be also a full CRI
Trait Implementations
sourceimpl Clone for NativeCBORCri
impl Clone for NativeCBORCri
sourcefn clone(&self) -> NativeCBORCri
fn clone(&self) -> NativeCBORCri
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 Cri for NativeCBORCri
impl Cri for NativeCBORCri
The type of authority of the CRI Read more
sourcefn format_uri(&self, w: &mut impl Write) -> Result
fn format_uri(&self, w: &mut impl Write) -> Result
Write the corresponding URI into a writer
sourcefn render_uri(&self) -> String
fn render_uri(&self) -> String
Write the corresponding URI into a string
sourcefn resolve<R: CriRef>(&self, reference: R) -> RuntimeResolved<'_, Self, R>
fn resolve<R: CriRef>(&self, reference: R) -> RuntimeResolved<'_, Self, R>
Resolve a reference against this base Read more
sourceimpl CriBase for NativeCBORCri
impl CriBase for NativeCBORCri
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 = <NativeCBORCri as CriBase>::PathItem<'a>> + ExactSizeIterator
type QueryItem<'a>
where
Self: 'a = &'a Pet<QUERY_UE>
type QueryIter<'a>
where
Self: 'a = impl Iterator<Item = <NativeCBORCri 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 Debug for NativeCBORCri
impl Debug for NativeCBORCri
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 NativeCBORCri
impl Send for NativeCBORCri
impl Sync for NativeCBORCri
impl Unpin for NativeCBORCri
impl UnwindSafe for NativeCBORCri
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