#[non_exhaustive]pub struct DefinitionLocation {
pub uri: Option<String>,
pub location: ByteSpan,
}Expand description
Definition location that may include a workspace URI.
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.uri: Option<String>File URI if known for this definition.
location: ByteSpanByte-range location inside the source file.
Trait Implementations§
Source§impl Clone for DefinitionLocation
impl Clone for DefinitionLocation
Source§fn clone(&self) -> DefinitionLocation
fn clone(&self) -> DefinitionLocation
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 DefinitionLocation
impl Debug for DefinitionLocation
Source§impl PartialEq for DefinitionLocation
impl PartialEq for DefinitionLocation
impl Eq for DefinitionLocation
impl StructuralPartialEq for DefinitionLocation
Auto Trait Implementations§
impl Freeze for DefinitionLocation
impl RefUnwindSafe for DefinitionLocation
impl Send for DefinitionLocation
impl Sync for DefinitionLocation
impl Unpin for DefinitionLocation
impl UnsafeUnpin for DefinitionLocation
impl UnwindSafe for DefinitionLocation
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