pub struct SimilarCodeLocation {
pub path: String,
pub name: String,
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub source_sha256: String,
}Expand description
Exact named location of one candidate function.
Fields§
§path: StringProject-root-relative, forward-slash path.
name: StringExtracted function or method name.
start_line: u32One-based inclusive start line.
start_column: u32One-based inclusive start column.
end_line: u32One-based inclusive end line.
end_column: u32One-based inclusive end column.
source_sha256: StringSHA-256 digest of the exact extracted function source.
Trait Implementations§
Source§impl Clone for SimilarCodeLocation
impl Clone for SimilarCodeLocation
Source§impl Debug for SimilarCodeLocation
impl Debug for SimilarCodeLocation
Source§impl<'de> Deserialize<'de> for SimilarCodeLocation
impl<'de> Deserialize<'de> for SimilarCodeLocation
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SimilarCodeLocation
Source§impl PartialEq for SimilarCodeLocation
impl PartialEq for SimilarCodeLocation
Source§impl Serialize for SimilarCodeLocation
impl Serialize for SimilarCodeLocation
impl StructuralPartialEq for SimilarCodeLocation
Auto Trait Implementations§
impl Freeze for SimilarCodeLocation
impl RefUnwindSafe for SimilarCodeLocation
impl Send for SimilarCodeLocation
impl Sync for SimilarCodeLocation
impl Unpin for SimilarCodeLocation
impl UnsafeUnpin for SimilarCodeLocation
impl UnwindSafe for SimilarCodeLocation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.