pub struct AttrCtxScanner { /* private fields */ }Expand description
Cross-line classifier that decides which RefContext a hunk line
sits in, and, inside a -record(...) attribute, the byte ranges of
its fields’ :: type annotations. -spec, -callback, -type,
and -opaque open a type-attribute region; -record opens its own
region and is split field by field; any other - attribute form
opens an other-attribute region. All three run until the
terminating . at the top level, and a single line may both open
and close one. Multi-line attributes flow through the stored region
so their later lines classify correctly.
A triple-quoted string suspends the close rule while it is open, because documentation prose ends lines with full stops constantly and would otherwise close the region at its first sentence.
Implementations§
Trait Implementations§
Source§impl Clone for AttrCtxScanner
impl Clone for AttrCtxScanner
impl Copy for AttrCtxScanner
Source§impl Debug for AttrCtxScanner
impl Debug for AttrCtxScanner
Auto Trait Implementations§
impl Forget for AttrCtxScanner
impl Freeze for AttrCtxScanner
impl Move for AttrCtxScanner
impl RefUnwindSafe for AttrCtxScanner
impl Send for AttrCtxScanner
impl Sync for AttrCtxScanner
impl Unpin for AttrCtxScanner
impl UnsafeUnpin for AttrCtxScanner
impl UnwindSafe for AttrCtxScanner
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