pub struct GotoTarget {
pub id: i32,
pub label: String,
pub line: i32,
pub column: Option<i32>,
pub end_line: Option<i32>,
pub end_column: Option<i32>,
pub instruction_pointer_reference: Option<String>,
/* private fields */
}
Expand description
A GotoTarget describes a code location that can be used as a target in the ‘goto’ request.
The possible goto targets can be determined via the ‘gotoTargets’ request.
Fields§
§id: i32
Unique identifier for a goto target. This is used in the goto request.
label: String
The name of the goto target (shown in the UI).
line: i32
The line of the goto target.
column: Option<i32>
An optional column of the goto target.
end_line: Option<i32>
An optional end line of the range covered by the goto target.
end_column: Option<i32>
An optional end column of the range covered by the goto target.
instruction_pointer_reference: Option<String>
Optional memory reference for the instruction pointer value represented by this target.
Implementations§
Source§impl GotoTarget
impl GotoTarget
Sourcepub fn builder() -> GotoTargetBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> GotoTargetBuilder<((), (), (), (), (), (), ())>
Create a builder for building GotoTarget
.
On the builder, call .id(...)
, .label(...)
, .line(...)
, .column(...)
(optional), .end_line(...)
(optional), .end_column(...)
(optional), .instruction_pointer_reference(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GotoTarget
.
Trait Implementations§
Source§impl Clone for GotoTarget
impl Clone for GotoTarget
Source§fn clone(&self) -> GotoTarget
fn clone(&self) -> GotoTarget
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GotoTarget
impl Debug for GotoTarget
Source§impl<'de> Deserialize<'de> for GotoTarget
impl<'de> Deserialize<'de> for GotoTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GotoTarget
impl PartialEq for GotoTarget
Source§impl Serialize for GotoTarget
impl Serialize for GotoTarget
impl Eq for GotoTarget
impl StructuralPartialEq for GotoTarget
Auto Trait Implementations§
impl Freeze for GotoTarget
impl RefUnwindSafe for GotoTarget
impl Send for GotoTarget
impl Sync for GotoTarget
impl Unpin for GotoTarget
impl UnwindSafe for GotoTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key
and return true
if they are equal.