[−][src]Struct opentelemetry::sdk::trace::EvictedHashMap
A hash map with a capped number of attributes that retains the most recently set entries.
Implementations
impl EvictedHashMap[src]
pub fn new(max_len: u32, capacity: usize) -> Self[src]
Create a new EvictedHashMap with a given max length and capacity.
pub fn insert(&mut self, item: KeyValue)[src]
Inserts a key-value pair into the map.
pub fn len(&self) -> usize[src]
Returns the number of elements in the map.
pub fn is_empty(&self) -> bool[src]
Returns true if the map is empty.
pub fn dropped_count(&self) -> u32[src]
Returns the dropped attribute count
pub fn iter(&self) -> Iter<'_>[src]
Returns a front-to-back iterator.
pub fn get(&self, key: &Key) -> Option<&Value>[src]
Returns a reference to the value corresponding to the key if it exists
Trait Implementations
impl Clone for EvictedHashMap[src]
fn clone(&self) -> EvictedHashMap[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for EvictedHashMap[src]
impl IntoIterator for EvictedHashMap[src]
type Item = (Key, Value)
The type of the elements being iterated over.
type IntoIter = IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter[src]
impl<'a> IntoIterator for &'a EvictedHashMap[src]
type Item = (&'a Key, &'a Value)
The type of the elements being iterated over.
type IntoIter = Iter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter[src]
impl PartialEq<EvictedHashMap> for EvictedHashMap[src]
fn eq(&self, other: &EvictedHashMap) -> bool[src]
fn ne(&self, other: &EvictedHashMap) -> bool[src]
impl StructuralPartialEq for EvictedHashMap[src]
Auto Trait Implementations
impl RefUnwindSafe for EvictedHashMap
impl Send for EvictedHashMap
impl Sync for EvictedHashMap
impl Unpin for EvictedHashMap
impl UnwindSafe for EvictedHashMap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator, [src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> I[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,