pub enum ComposedCellSource {
Document {
offset: usize,
},
Virtual {
anchor_offset: usize,
},
}Expand description
The origin of a composed cell.
Variants§
Document
A document text character at the given character offset.
Virtual
A virtual cell anchored to a document character offset (e.g. inlay hints, code lens).
Trait Implementations§
Source§impl Clone for ComposedCellSource
impl Clone for ComposedCellSource
Source§fn clone(&self) -> ComposedCellSource
fn clone(&self) -> ComposedCellSource
Returns a duplicate 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 Debug for ComposedCellSource
impl Debug for ComposedCellSource
Source§impl PartialEq for ComposedCellSource
impl PartialEq for ComposedCellSource
impl Copy for ComposedCellSource
impl Eq for ComposedCellSource
impl StructuralPartialEq for ComposedCellSource
Auto Trait Implementations§
impl Freeze for ComposedCellSource
impl RefUnwindSafe for ComposedCellSource
impl Send for ComposedCellSource
impl Sync for ComposedCellSource
impl Unpin for ComposedCellSource
impl UnsafeUnpin for ComposedCellSource
impl UnwindSafe for ComposedCellSource
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