#[non_exhaustive]pub struct PartialPathId<'a> {
pub file: &'a str,
pub index: usize,
}Expand description
Where a stored partial path lives: its file and its place among the file’s paths.
An id lives no longer than the borrow of the database that gave it, so that database does not change while the id lives. It names a path only in that database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: &'a strThe file whose graph the path walks.
index: usizeThe path’s place among the file’s paths.
Trait Implementations§
Source§impl<'a> Clone for PartialPathId<'a>
impl<'a> Clone for PartialPathId<'a>
impl<'a> Copy for PartialPathId<'a>
Source§impl<'a> Debug for PartialPathId<'a>
impl<'a> Debug for PartialPathId<'a>
impl<'a> Eq for PartialPathId<'a>
Source§impl<'a> Hash for PartialPathId<'a>
impl<'a> Hash for PartialPathId<'a>
Source§impl<'a> Ord for PartialPathId<'a>
impl<'a> Ord for PartialPathId<'a>
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<'a> PartialEq for PartialPathId<'a>
impl<'a> PartialEq for PartialPathId<'a>
Source§impl<'a> PartialOrd for PartialPathId<'a>
impl<'a> PartialOrd for PartialPathId<'a>
impl<'a> StructuralPartialEq for PartialPathId<'a>
Auto Trait Implementations§
impl<'a> Forget for PartialPathId<'a>
impl<'a> Freeze for PartialPathId<'a>
impl<'a> RefUnwindSafe for PartialPathId<'a>
impl<'a> Send for PartialPathId<'a>
impl<'a> Sync for PartialPathId<'a>
impl<'a> Unpin for PartialPathId<'a>
impl<'a> UnsafeUnpin for PartialPathId<'a>
impl<'a> UnwindSafe for PartialPathId<'a>
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