Struct ink_analyzer::Completion
source · pub struct Completion {
pub label: String,
pub range: TextRange,
pub edit: TextEdit,
pub detail: Option<String>,
}Expand description
An ink! attribute completion item.
Fields§
§label: StringLabel which identifies the completion.
range: TextRangeRange of identifier that is being completed.
edit: TextEditReplacement text for the completion.
detail: Option<String>Descriptive information about the completion.
Trait Implementations§
source§impl Clone for Completion
impl Clone for Completion
source§fn clone(&self) -> Completion
fn clone(&self) -> Completion
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 Debug for Completion
impl Debug for Completion
source§impl PartialEq for Completion
impl PartialEq for Completion
source§fn eq(&self, other: &Completion) -> bool
fn eq(&self, other: &Completion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Completion
impl StructuralPartialEq for Completion
Auto Trait Implementations§
impl Freeze for Completion
impl RefUnwindSafe for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnwindSafe for Completion
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.