Enum ezno_checker::features::assignments::Reference
source · pub enum Reference {
Variable(String, SpanWithSource),
Property {
on: TypeId,
with: PropertyKey<'static>,
publicity: Publicity,
span: SpanWithSource,
},
}
Expand description
TODO Can this use lifetimes?
Variants§
Variable(String, SpanWithSource)
Property
Implementations§
source§impl Reference
impl Reference
pub fn get_position(&self) -> SpanWithSource
sourcepub fn new_empty_variable_reference(position: SpanWithSource) -> Self
pub fn new_empty_variable_reference(position: SpanWithSource) -> Self
for LSP
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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> 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