pub struct IgnoredImportPragma {
pub module: String,
pub pragma: &'static str,
}Expand description
A #pragma directive declared in an imported module.
Pragmas are entry-file-scoped: a directive declared in an imported module never affects compilation. These records exist so callers can surface the dropped pragmas as warnings instead of ignoring them silently.
Fields§
§module: StringModule path string (e.g. rules/common/base).
pragma: &'static strPragma key as written in source (e.g. magic_sets).
Trait Implementations§
Source§impl Clone for IgnoredImportPragma
impl Clone for IgnoredImportPragma
Source§fn clone(&self) -> IgnoredImportPragma
fn clone(&self) -> IgnoredImportPragma
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 IgnoredImportPragma
impl Debug for IgnoredImportPragma
Source§impl Display for IgnoredImportPragma
impl Display for IgnoredImportPragma
impl Eq for IgnoredImportPragma
Source§impl Ord for IgnoredImportPragma
impl Ord for IgnoredImportPragma
Source§fn cmp(&self, other: &IgnoredImportPragma) -> Ordering
fn cmp(&self, other: &IgnoredImportPragma) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IgnoredImportPragma
impl PartialEq for IgnoredImportPragma
Source§fn eq(&self, other: &IgnoredImportPragma) -> bool
fn eq(&self, other: &IgnoredImportPragma) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IgnoredImportPragma
impl PartialOrd for IgnoredImportPragma
impl StructuralPartialEq for IgnoredImportPragma
Auto Trait Implementations§
impl Freeze for IgnoredImportPragma
impl RefUnwindSafe for IgnoredImportPragma
impl Send for IgnoredImportPragma
impl Sync for IgnoredImportPragma
impl Unpin for IgnoredImportPragma
impl UnsafeUnpin for IgnoredImportPragma
impl UnwindSafe for IgnoredImportPragma
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more