pub struct TargetPragmas {
pub at: Vec<Pos>,
pub applied: bool,
}Expand description
What scan_target_pragma found, which the preprocessor needs in order
not to report the same directive twice.
Fields§
§at: Vec<Pos>Where each #pragma cinrs target in the unit’s own text begins — the
offset of its #, which is where the preprocessor’s own range for a
directive starts too.
applied: boolWhether one of them really chose the model. False when there was none, and false when there was one that has already been reported.
Trait Implementations§
Source§impl Clone for TargetPragmas
impl Clone for TargetPragmas
Source§impl Debug for TargetPragmas
impl Debug for TargetPragmas
Auto Trait Implementations§
impl Freeze for TargetPragmas
impl RefUnwindSafe for TargetPragmas
impl Send for TargetPragmas
impl Sync for TargetPragmas
impl Unpin for TargetPragmas
impl UnsafeUnpin for TargetPragmas
impl UnwindSafe for TargetPragmas
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