pub struct SpanLinkSet { /* private fields */ }Expand description
A collection of SpanLinks.
Implementations§
Source§impl SpanLinkSet
impl SpanLinkSet
Sourcepub fn try_from_str(s: &str) -> Result<Self, ParseSpanLinkSetError>
pub fn try_from_str(s: &str) -> Result<Self, ParseSpanLinkSetError>
Parse a SpanLinkSet from its raw textual representation.
The input must be enclosed in matching brackets ([], (), or {}), with comma-separated SpanLink strings inside.
Sourcepub fn insert(&mut self, link: SpanLink) -> bool
pub fn insert(&mut self, link: SpanLink) -> bool
Insert a SpanLink into the set.
Returns true if the link was not already present.
Trait Implementations§
Source§impl Clone for SpanLinkSet
impl Clone for SpanLinkSet
Source§fn clone(&self) -> SpanLinkSet
fn clone(&self) -> SpanLinkSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpanLinkSet
impl Debug for SpanLinkSet
Source§impl Default for SpanLinkSet
impl Default for SpanLinkSet
Source§impl Display for SpanLinkSet
impl Display for SpanLinkSet
impl Eq for SpanLinkSet
Source§impl<'a> Extend<(TraceId, SpanId)> for SpanLinkSet
impl<'a> Extend<(TraceId, SpanId)> for SpanLinkSet
Source§fn extend<I: IntoIterator<Item = (TraceId, SpanId)>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = (TraceId, SpanId)>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'a> Extend<SpanLink> for SpanLinkSet
impl<'a> Extend<SpanLink> for SpanLinkSet
Source§fn extend<I: IntoIterator<Item = SpanLink>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = SpanLink>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'a> FromIterator<(TraceId, SpanId)> for SpanLinkSet
impl<'a> FromIterator<(TraceId, SpanId)> for SpanLinkSet
Source§impl<'a> FromIterator<SpanLink> for SpanLinkSet
impl<'a> FromIterator<SpanLink> for SpanLinkSet
Source§impl FromStr for SpanLinkSet
impl FromStr for SpanLinkSet
Source§impl<'a> FromValue<'a> for SpanLinkSet
impl<'a> FromValue<'a> for SpanLinkSet
Source§fn from_value(v: Value<'a>) -> Option<Self>
fn from_value(v: Value<'a>) -> Option<Self>
Perform the conversion.
Source§impl<'a> IntoIterator for &'a SpanLinkSet
impl<'a> IntoIterator for &'a SpanLinkSet
Source§impl PartialEq for SpanLinkSet
impl PartialEq for SpanLinkSet
Source§fn eq(&self, other: &SpanLinkSet) -> bool
fn eq(&self, other: &SpanLinkSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpanLinkSet
Available on crate feature serde only.
impl Serialize for SpanLinkSet
Available on crate feature
serde only.impl StructuralPartialEq for SpanLinkSet
Source§impl Value for SpanLinkSet
Available on crate feature sval only.
impl Value for SpanLinkSet
Available on crate feature
sval only.Source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S,
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S, ) -> Result
Stream this value through a
Stream.Source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.
Auto Trait Implementations§
impl Freeze for SpanLinkSet
impl RefUnwindSafe for SpanLinkSet
impl Send for SpanLinkSet
impl Sync for SpanLinkSet
impl Unpin for SpanLinkSet
impl UnsafeUnpin for SpanLinkSet
impl UnwindSafe for SpanLinkSet
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