pub struct FragmentRef {
pub pack: String,
pub span: Span,
pub target_fragment: String,
}Expand description
One ref: reference inside a pack → the fragment it resolves to. Powers
go-to-definition from a ref: line to the annotation in the .hurl file.
Fields§
§pack: StringSource name of the pack the ref: line lives in.
span: SpanByte span of the ref: line in the normalized pack source.
target_fragment: StringThe fragment the reference resolves to (globally unique name).
Trait Implementations§
Source§impl Clone for FragmentRef
impl Clone for FragmentRef
Source§fn clone(&self) -> FragmentRef
fn clone(&self) -> FragmentRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FragmentRef
impl RefUnwindSafe for FragmentRef
impl Send for FragmentRef
impl Sync for FragmentRef
impl Unpin for FragmentRef
impl UnsafeUnpin for FragmentRef
impl UnwindSafe for FragmentRef
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