pub struct EntityLocation {
pub file_path: String,
pub entity_type: String,
pub entity_name: String,
pub start_line: usize,
pub end_line: usize,
pub is_public: bool,
pub content: String,
}Expand description
Location of an entity in the codebase
Fields§
§file_path: StringFile path containing the entity
entity_type: StringType of entity (function, class, etc.)
entity_name: StringName of the entity
start_line: usizeStart line number (1-indexed)
end_line: usizeEnd line number (1-indexed)
is_public: boolWhether this entity is public/exported
content: StringFull content of the entity
Implementations§
Source§impl EntityLocation
impl EntityLocation
Sourcepub fn identifier(&self) -> String
pub fn identifier(&self) -> String
Get a unique identifier for this entity
Trait Implementations§
Source§impl Clone for EntityLocation
impl Clone for EntityLocation
Source§fn clone(&self) -> EntityLocation
fn clone(&self) -> EntityLocation
Returns a duplicate 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 EntityLocation
impl Debug for EntityLocation
Source§impl<'de> Deserialize<'de> for EntityLocation
impl<'de> Deserialize<'de> for EntityLocation
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
Auto Trait Implementations§
impl Freeze for EntityLocation
impl RefUnwindSafe for EntityLocation
impl Send for EntityLocation
impl Sync for EntityLocation
impl Unpin for EntityLocation
impl UnwindSafe for EntityLocation
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<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