Struct ink_analyzer::SignatureHelp
source · pub struct SignatureHelp {
pub label: String,
pub range: TextRange,
pub parameters: Vec<SignatureParameter>,
pub active_parameter: Option<usize>,
pub detail: Option<String>,
}
Expand description
An ink! attribute signature help.
Fields§
§label: String
Text of the signature.
range: TextRange
Range where the signature applies.
parameters: Vec<SignatureParameter>
Parameters of the signature.
active_parameter: Option<usize>
Index of the active parameter.
detail: Option<String>
Extra details about the signature.
Trait Implementations§
source§impl Clone for SignatureHelp
impl Clone for SignatureHelp
source§fn clone(&self) -> SignatureHelp
fn clone(&self) -> SignatureHelp
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 SignatureHelp
impl Debug for SignatureHelp
source§impl PartialEq for SignatureHelp
impl PartialEq for SignatureHelp
source§fn eq(&self, other: &SignatureHelp) -> bool
fn eq(&self, other: &SignatureHelp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SignatureHelp
impl StructuralPartialEq for SignatureHelp
Auto Trait Implementations§
impl Freeze for SignatureHelp
impl RefUnwindSafe for SignatureHelp
impl Send for SignatureHelp
impl Sync for SignatureHelp
impl Unpin for SignatureHelp
impl UnwindSafe for SignatureHelp
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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more