pub struct FileCompletionContext {
pub prefix: String,
pub prefix_start: usize,
pub position: usize,
}Expand description
Minimal request context for file-path completion.
Fields§
§prefix: StringThe raw path prefix already typed by the user.
prefix_start: usizeByte offset where the prefix starts.
position: usizeCurrent byte offset of the cursor.
Implementations§
Trait Implementations§
Source§impl Clone for FileCompletionContext
impl Clone for FileCompletionContext
Source§fn clone(&self) -> FileCompletionContext
fn clone(&self) -> FileCompletionContext
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 FileCompletionContext
impl Debug for FileCompletionContext
Source§impl PartialEq for FileCompletionContext
impl PartialEq for FileCompletionContext
impl Eq for FileCompletionContext
impl StructuralPartialEq for FileCompletionContext
Auto Trait Implementations§
impl Freeze for FileCompletionContext
impl RefUnwindSafe for FileCompletionContext
impl Send for FileCompletionContext
impl Sync for FileCompletionContext
impl Unpin for FileCompletionContext
impl UnsafeUnpin for FileCompletionContext
impl UnwindSafe for FileCompletionContext
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