pub struct Section {
pub start: usize,
pub end: usize,
pub title: Option<String>,
}Expand description
字节范围。所有分段首尾相接,正好覆盖整个文件。
Fields§
§start: usize§end: usize§title: Option<String>形如 function foo;文件开头没有符号的部分为 None。
Trait Implementations§
Auto Trait Implementations§
impl Forget for Section
impl Freeze for Section
impl Move for Section
impl RefUnwindSafe for Section
impl Send for Sectionwhere
RawVecInner: Send,
impl Sync for Sectionwhere
RawVecInner: Sync,
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Sectionwhere
RawVecInner: UnwindSafe,
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