Struct language2::OutlineItem
source · pub struct OutlineItem<T> {
pub depth: usize,
pub range: Range<T>,
pub text: String,
pub highlight_ranges: Vec<(Range<usize>, HighlightStyle)>,
pub name_ranges: Vec<Range<usize>>,
}
Fields§
§depth: usize
§range: Range<T>
§text: String
§highlight_ranges: Vec<(Range<usize>, HighlightStyle)>
§name_ranges: Vec<Range<usize>>
Trait Implementations§
source§impl<T: Clone> Clone for OutlineItem<T>
impl<T: Clone> Clone for OutlineItem<T>
source§fn clone(&self) -> OutlineItem<T>
fn clone(&self) -> OutlineItem<T>
Returns a copy 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<T: Debug> Debug for OutlineItem<T>
impl<T: Debug> Debug for OutlineItem<T>
source§impl<T: PartialEq> PartialEq<OutlineItem<T>> for OutlineItem<T>
impl<T: PartialEq> PartialEq<OutlineItem<T>> for OutlineItem<T>
source§fn eq(&self, other: &OutlineItem<T>) -> bool
fn eq(&self, other: &OutlineItem<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for OutlineItem<T>
impl<T> StructuralEq for OutlineItem<T>
impl<T> StructuralPartialEq for OutlineItem<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OutlineItem<T>where T: RefUnwindSafe,
impl<T> Send for OutlineItem<T>where T: Send,
impl<T> Sync for OutlineItem<T>where T: Sync,
impl<T> Unpin for OutlineItem<T>where T: Unpin,
impl<T> UnwindSafe for OutlineItem<T>where T: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.