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 RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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