pub struct Referent {
pub path: RelPath,
pub name_span: Span,
}Expand description
The nouns of the plugin contract that appear in the engine’s answers, so an interface needs nothing but this crate. Where a declaration is: the file and the span of its name, both as the workspace spells them (relative paths).
Fields§
§path: RelPath§name_span: SpanTrait Implementations§
impl Eq for Referent
impl StructuralPartialEq for Referent
Auto Trait Implementations§
impl Freeze for Referent
impl RefUnwindSafe for Referent
impl Send for Referent
impl Sync for Referent
impl Unpin for Referent
impl UnsafeUnpin for Referent
impl UnwindSafe for Referent
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