pub struct SnippetCompletionSource {
pub registry: Arc<SharedSnippetRegistry>,
}Expand description
The SyncCompletionSource impl that emits snippet
candidates. Captures the registry as an Arc so cloning
the contribution stays O(1); the registry itself is shared
with the host’s App.snippet_registry.
Fields§
§registry: Arc<SharedSnippetRegistry>Trait Implementations§
Source§impl Clone for SnippetCompletionSource
impl Clone for SnippetCompletionSource
Source§fn clone(&self) -> SnippetCompletionSource
fn clone(&self) -> SnippetCompletionSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SnippetCompletionSource
impl Debug for SnippetCompletionSource
Auto Trait Implementations§
impl Freeze for SnippetCompletionSource
impl RefUnwindSafe for SnippetCompletionSource
impl Send for SnippetCompletionSource
impl Sync for SnippetCompletionSource
impl Unpin for SnippetCompletionSource
impl UnsafeUnpin for SnippetCompletionSource
impl UnwindSafe for SnippetCompletionSource
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