pub struct LineClass {
pub context: RefContext,
pub type_spans: Vec<Range<usize>>,
}Expand description
One line’s attribute-region classification, plus the byte ranges of
any :: type annotations on it. type_spans is empty outside a
-record region; each range indexes the comment-stripped line.
Fields§
§context: RefContext§type_spans: Vec<Range<usize>>Implementations§
Trait Implementations§
impl Eq for LineClass
impl StructuralPartialEq for LineClass
Auto Trait Implementations§
impl Forget for LineClass
impl Freeze for LineClass
impl Move for LineClass
impl RefUnwindSafe for LineClass
impl Send for LineClass
impl Sync for LineClass
impl Unpin for LineClass
impl UnsafeUnpin for LineClass
impl UnwindSafe for LineClass
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