pub enum Placement<'table> {
WholeDeclaration,
AtToken {
token: SpanHandle,
spans: &'table SpanTable,
},
}Expand description
Where one projected refusal sits.
A refusal about the DECLARATION has nowhere narrower to point, and a line naming a position inside it would send a reader to an arbitrary spot; a refusal about one CLAUSE of an authored attribute has exactly one place, and the reader is sent there.
Variants§
WholeDeclaration
The refusal is about the declaration as a whole.
AtToken
The refusal sits at one token, resolved through the producer’s own table.
Fields
§
token: SpanHandleThe token it sits at.
Trait Implementations§
Auto Trait Implementations§
impl<'table> Freeze for Placement<'table>
impl<'table> RefUnwindSafe for Placement<'table>
impl<'table> Send for Placement<'table>
impl<'table> Sync for Placement<'table>
impl<'table> Unpin for Placement<'table>
impl<'table> UnsafeUnpin for Placement<'table>
impl<'table> UnwindSafe for Placement<'table>
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