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
sourceimpl<'a, T> Debug for IndexedSpanRefMut<'a, T>where
T: Debug,
impl<'a, T> Debug for IndexedSpanRefMut<'a, T>where
T: Debug,
sourceimpl<'a, T> Hash for IndexedSpanRefMut<'a, T>where
T: Hash,
impl<'a, T> Hash for IndexedSpanRefMut<'a, T>where
T: Hash,
sourceimpl<'a, T> PartialEq<IndexedSpanRefMut<'a, T>> for IndexedSpanRefMut<'a, T>where
T: PartialEq<T>,
impl<'a, T> PartialEq<IndexedSpanRefMut<'a, T>> for IndexedSpanRefMut<'a, T>where
T: PartialEq<T>,
sourcefn eq(&self, other: &IndexedSpanRefMut<'a, T>) -> bool
fn eq(&self, other: &IndexedSpanRefMut<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a, T> Eq for IndexedSpanRefMut<'a, T>where
T: Eq,
impl<'a, T> StructuralEq for IndexedSpanRefMut<'a, T>
impl<'a, T> StructuralPartialEq for IndexedSpanRefMut<'a, T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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