pub struct DirectiveLine {
pub line_no: usize,
pub tokens: Vec<String>,
}Expand description
One logical directive line: the directive keyword (tokens[0]) plus its raw argument
tokens, after continuation-joining and comment stripping. line_no is the 1-based
physical line where the directive started (for boot-time skip/parse diagnostics).
Fields§
§line_no: usize§tokens: Vec<String>Trait Implementations§
Source§impl Clone for DirectiveLine
impl Clone for DirectiveLine
Source§fn clone(&self) -> DirectiveLine
fn clone(&self) -> DirectiveLine
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 moreSource§impl Debug for DirectiveLine
impl Debug for DirectiveLine
impl Eq for DirectiveLine
Source§impl PartialEq for DirectiveLine
impl PartialEq for DirectiveLine
Source§fn eq(&self, other: &DirectiveLine) -> bool
fn eq(&self, other: &DirectiveLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DirectiveLine
Auto Trait Implementations§
impl Freeze for DirectiveLine
impl RefUnwindSafe for DirectiveLine
impl Send for DirectiveLine
impl Sync for DirectiveLine
impl Unpin for DirectiveLine
impl UnsafeUnpin for DirectiveLine
impl UnwindSafe for DirectiveLine
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