Struct rust_assistant::Item
source · pub struct Item {
pub name: String,
pub type_: ItemType,
pub file: Arc<Path>,
pub line_range: RangeInclusive<NonZeroUsize>,
}
Expand description
Represents an item found in a crate.
This struct describes an item, such as a struct or function, including its location within the crate.
Fields§
§name: String
The name of the item.
type_: ItemType
The type of the item.
file: Arc<Path>
The file path where the item is located.
line_range: RangeInclusive<NonZeroUsize>
The range of lines in the file where the item is defined.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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