pub enum Target {
Symbol {
path: String,
symbol: String,
},
Line {
path: String,
line: u32,
end: u32,
},
File {
path: String,
},
}Expand description
Where a figure’s node, or a stop’s anchor, points. Resolution happens when it is drawn, never when it is written, so it keeps pointing at the right code after an edit moves it.
Variants§
Symbol
path#symbol, resolved through the file’s definition spans. The form
to prefer: it survives the symbol moving.
Line
path:line or path:start-end, 1-based and inclusive.
File
Implementations§
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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