pub struct Anchor {
pub kind: &'static str,
pub path: &'static str,
pub needle: Option<&'static str>,
}Expand description
Where a fragment goes.
Fields§
§kind: &'static strattrset, function-head, list, or file.
path: &'static strThe attribute path or the file, as a reader names it.
needle: Option<&'static str>A literal substring that locates the anchor, where the observation found one; never a pattern.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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