pub struct IndexedSpanRefMut<'a, T> {
pub content: &'a IndexedCow,
pub attr: &'a mut T,
pub width: usize,
}
Expand description
A reference to an IndexedSpan allowing modification of the attribute.
Fields§
§content: &'a IndexedCow
Points to the content of the span.
attr: &'a mut T
Mutable reference to the attribute of the span.
width: usize
Width of the span.
Trait Implementations§
Source§impl<'a, T> Debug for IndexedSpanRefMut<'a, T>where
T: Debug,
impl<'a, T> Debug for IndexedSpanRefMut<'a, T>where
T: Debug,
Source§impl<'a, T> Hash for IndexedSpanRefMut<'a, T>where
T: Hash,
impl<'a, T> Hash for IndexedSpanRefMut<'a, T>where
T: Hash,
Source§impl<'a, T> PartialEq for IndexedSpanRefMut<'a, T>where
T: PartialEq,
impl<'a, T> PartialEq for IndexedSpanRefMut<'a, T>where
T: PartialEq,
impl<'a, T> Eq for IndexedSpanRefMut<'a, T>where
T: Eq,
impl<'a, T> StructuralPartialEq for IndexedSpanRefMut<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for IndexedSpanRefMut<'a, T>
impl<'a, T> RefUnwindSafe for IndexedSpanRefMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for IndexedSpanRefMut<'a, T>where
T: Send,
impl<'a, T> Sync for IndexedSpanRefMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for IndexedSpanRefMut<'a, T>
impl<'a, T> !UnwindSafe for IndexedSpanRefMut<'a, T>
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<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.