Struct lsp_document::IndexedText [−][src]
Expand description
A combo of TextMap
+ TextAdapter
. Wraps the original text and
provides all the conversion methods.
Generic over the type of the text it wraps. Can be used with e.g. &str
,
String
, or Arc<str>
, depending on whether ownership is needed and if it
needs to be unique or shared.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for IndexedText<T> where
T: RefUnwindSafe,
impl<T> Send for IndexedText<T> where
T: Send,
impl<T> Sync for IndexedText<T> where
T: Sync,
impl<T> Unpin for IndexedText<T> where
T: Unpin,
impl<T> UnwindSafe for IndexedText<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more