pub struct RawExternalData<'a> { /* private fields */ }
Expand description
A borrowed representation of ExternalData
.
This can be used to parse external data strings without needing to allocate backing storage for any of the fields,
and can be used to look up map entries (such as when using HashMap
) when the key is ExternalData
.
Implementations§
Source§impl<'a> RawExternalData<'a>
impl<'a> RawExternalData<'a>
Sourcepub fn try_from_str(raw: &'a str) -> Option<Self>
pub fn try_from_str(raw: &'a str) -> Option<Self>
Creates a new RawExternalData
from a raw string.
If the external data is not valid, None
is returned.
Trait Implementations§
Source§impl<'a> Clone for RawExternalData<'a>
impl<'a> Clone for RawExternalData<'a>
Source§fn clone(&self) -> RawExternalData<'a>
fn clone(&self) -> RawExternalData<'a>
Returns a duplicate 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 RawExternalData<'a>
impl<'a> Debug for RawExternalData<'a>
Source§impl Display for RawExternalData<'_>
impl Display for RawExternalData<'_>
Source§impl Equivalent<ExternalData> for RawExternalData<'_>
impl Equivalent<ExternalData> for RawExternalData<'_>
Source§fn equivalent(&self, other: &ExternalData) -> bool
fn equivalent(&self, other: &ExternalData) -> bool
Compare self to
key
and return true
if they are equal.Source§impl Hash for RawExternalData<'_>
impl Hash for RawExternalData<'_>
Source§impl<'a> PartialEq for RawExternalData<'a>
impl<'a> PartialEq for RawExternalData<'a>
impl<'a> Eq for RawExternalData<'a>
impl<'a> StructuralPartialEq for RawExternalData<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawExternalData<'a>
impl<'a> RefUnwindSafe for RawExternalData<'a>
impl<'a> Send for RawExternalData<'a>
impl<'a> Sync for RawExternalData<'a>
impl<'a> Unpin for RawExternalData<'a>
impl<'a> UnwindSafe for RawExternalData<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more