pub struct SimilarCodeFunctionLocation {
pub file: String,
pub start_byte: u32,
pub end_byte: u32,
pub start_line: u32,
pub start_column_utf8: u32,
pub end_line: u32,
pub end_column_utf8: u32,
}Expand description
Complete location of one function in UTF-8 source text.
Fields§
§file: StringUTF-8 project-root-relative path with forward-slash separators.
start_byte: u32Inclusive zero-based byte offset in the post-BOM source view.
end_byte: u32Exclusive zero-based byte offset in the post-BOM source view.
start_line: u32One-based start line.
start_column_utf8: u32Zero-based start column counted in UTF-8 scalar values, not bytes.
end_line: u32One-based end line.
end_column_utf8: u32Zero-based end column counted in UTF-8 scalar values, not bytes.
Trait Implementations§
Source§impl Clone for SimilarCodeFunctionLocation
impl Clone for SimilarCodeFunctionLocation
Source§impl Debug for SimilarCodeFunctionLocation
impl Debug for SimilarCodeFunctionLocation
impl Eq for SimilarCodeFunctionLocation
Source§impl Ord for SimilarCodeFunctionLocation
impl Ord for SimilarCodeFunctionLocation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SimilarCodeFunctionLocation
impl PartialOrd for SimilarCodeFunctionLocation
impl StructuralPartialEq for SimilarCodeFunctionLocation
Auto Trait Implementations§
impl Freeze for SimilarCodeFunctionLocation
impl RefUnwindSafe for SimilarCodeFunctionLocation
impl Send for SimilarCodeFunctionLocation
impl Sync for SimilarCodeFunctionLocation
impl Unpin for SimilarCodeFunctionLocation
impl UnsafeUnpin for SimilarCodeFunctionLocation
impl UnwindSafe for SimilarCodeFunctionLocation
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.