pub struct ContextScope {
pub scope_start: u32,
pub scope_end: u32,
pub header_start: u32,
pub header_end: u32,
}Expand description
One structural scope: the range it spans, and the lines that name it.
header_start ..= header_end is normally a single line; it spans
several when a signature wraps. Both ends are inclusive, 0-based
source lines.
Fields§
§scope_start: u32§scope_end: u32§header_start: u32§header_end: u32Trait Implementations§
Source§impl Clone for ContextScope
impl Clone for ContextScope
Source§fn clone(&self) -> ContextScope
fn clone(&self) -> ContextScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextScope
Source§impl Debug for ContextScope
impl Debug for ContextScope
impl Eq for ContextScope
Source§impl PartialEq for ContextScope
impl PartialEq for ContextScope
impl StructuralPartialEq for ContextScope
Auto Trait Implementations§
impl Freeze for ContextScope
impl RefUnwindSafe for ContextScope
impl Send for ContextScope
impl Sync for ContextScope
impl Unpin for ContextScope
impl UnsafeUnpin for ContextScope
impl UnwindSafe for ContextScope
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