pub(crate) struct HeaderLine<'ln> {
pub(crate) line_number: usize,
pub(crate) revision: Option<&'ln str>,
pub(crate) directive: &'ln str,
}
Expand description
A header line, like //@name: value
consists of the prefix //@
and the directive
name: value
. It is also possibly revisioned, e.g. //@[revision] name: value
.
Fields§
§line_number: usize
§revision: Option<&'ln str>
§directive: &'ln str
Auto Trait Implementations§
impl<'ln> Freeze for HeaderLine<'ln>
impl<'ln> RefUnwindSafe for HeaderLine<'ln>
impl<'ln> Send for HeaderLine<'ln>
impl<'ln> Sync for HeaderLine<'ln>
impl<'ln> Unpin for HeaderLine<'ln>
impl<'ln> UnwindSafe for HeaderLine<'ln>
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes