pub struct Item {
pub text: String,
pub key: String,
pub code_at: usize,
}Expand description
One piece of a header: a logical line of code, with whatever comments and blank lines came immediately above it.
Fields§
§text: StringThe text exactly as the file had it, newlines included, which is what gets written out.
key: StringThe code of the logical line, normalized, which is what two releases are compared by.
code_at: usizeWhere in text the logical line starts, which is after the comments that came with it.
Here so that a patch to the code can leave the comment above it where it was, which is what
the replacement of glibc’s own definition of __GLIBC_MINOR__ does.
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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