Struct rustc_session::config::RemapPathScopeComponents
source · pub struct RemapPathScopeComponents(InternalBitFlags);
Expand description
Scopes used to determined if it need to apply to –remap-path-prefix
Tuple Fields§
§0: InternalBitFlags
Implementations§
source§impl RemapPathScopeComponents
impl RemapPathScopeComponents
sourcepub const DIAGNOSTICS: Self = _
pub const DIAGNOSTICS: Self = _
Apply remappings to printed compiler diagnostics
sourcepub const UNSPLIT_DEBUGINFO: Self = _
pub const UNSPLIT_DEBUGINFO: Self = _
Apply remappings to debug information only when they are written to compiled executables or libraries, but not when they are in split debuginfo files
sourcepub const SPLIT_DEBUGINFO: Self = _
pub const SPLIT_DEBUGINFO: Self = _
Apply remappings to debug information only when they are written to split debug information files, but not in compiled executables or libraries
sourcepub const SPLIT_DEBUGINFO_PATH: Self = _
pub const SPLIT_DEBUGINFO_PATH: Self = _
Apply remappings to the paths pointing to split debug information files. Does nothing when these files are not generated.
source§impl RemapPathScopeComponents
impl RemapPathScopeComponents
sourcepub const fn bits(&self) -> u8
pub const fn bits(&self) -> u8
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
sourcepub const fn from_bits(bits: u8) -> Option<Self>
pub const fn from_bits(bits: u8) -> Option<Self>
Convert from a bits value.
This method will return None
if any unknown bits are set.
sourcepub const fn from_bits_truncate(bits: u8) -> Self
pub const fn from_bits_truncate(bits: u8) -> Self
Convert from a bits value, unsetting any unknown bits.
sourcepub const fn from_bits_retain(bits: u8) -> Self
pub const fn from_bits_retain(bits: u8) -> Self
Convert from a bits value exactly.
sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
sourcepub fn remove(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
sourcepub fn toggle(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&
) of the bits in two flags values.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
The bitwise or (|
) of the bits in two flags values.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^
) of the bits in two flags values.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The bitwise negation (!
) of the bits in a flags value, truncating the result.
source§impl RemapPathScopeComponents
impl RemapPathScopeComponents
sourcepub const fn iter(&self) -> Iter<RemapPathScopeComponents>
pub const fn iter(&self) -> Iter<RemapPathScopeComponents>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
sourcepub const fn iter_names(&self) -> IterNames<RemapPathScopeComponents>
pub const fn iter_names(&self) -> IterNames<RemapPathScopeComponents>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
source§impl Binary for RemapPathScopeComponents
impl Binary for RemapPathScopeComponents
source§impl BitAnd for RemapPathScopeComponents
impl BitAnd for RemapPathScopeComponents
source§impl BitAndAssign for RemapPathScopeComponents
impl BitAndAssign for RemapPathScopeComponents
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&
) of the bits in two flags values.
source§impl BitOr for RemapPathScopeComponents
impl BitOr for RemapPathScopeComponents
source§fn bitor(self, other: RemapPathScopeComponents) -> Self
fn bitor(self, other: RemapPathScopeComponents) -> Self
The bitwise or (|
) of the bits in two flags values.
§type Output = RemapPathScopeComponents
type Output = RemapPathScopeComponents
|
operator.source§impl BitOrAssign for RemapPathScopeComponents
impl BitOrAssign for RemapPathScopeComponents
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|
) of the bits in two flags values.
source§impl BitXor for RemapPathScopeComponents
impl BitXor for RemapPathScopeComponents
source§impl BitXorAssign for RemapPathScopeComponents
impl BitXorAssign for RemapPathScopeComponents
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
source§impl Clone for RemapPathScopeComponents
impl Clone for RemapPathScopeComponents
source§fn clone(&self) -> RemapPathScopeComponents
fn clone(&self) -> RemapPathScopeComponents
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DepTrackingHash for RemapPathScopeComponents
impl DepTrackingHash for RemapPathScopeComponents
fn hash( &self, hasher: &mut DefaultHasher, _: ErrorOutputType, _for_crate_hash: bool )
source§impl Extend<RemapPathScopeComponents> for RemapPathScopeComponents
impl Extend<RemapPathScopeComponents> for RemapPathScopeComponents
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|
) of the bits in each flags value.
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl Flags for RemapPathScopeComponents
impl Flags for RemapPathScopeComponents
source§const FLAGS: &'static [Flag<RemapPathScopeComponents>] = _
const FLAGS: &'static [Flag<RemapPathScopeComponents>] = _
source§fn from_bits_retain(bits: u8) -> RemapPathScopeComponents
fn from_bits_retain(bits: u8) -> RemapPathScopeComponents
source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|
) of the bits in two flags values.source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read moresource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^
) of the bits in two flags values.source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read moresource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.source§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.source§impl FromIterator<RemapPathScopeComponents> for RemapPathScopeComponents
impl FromIterator<RemapPathScopeComponents> for RemapPathScopeComponents
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|
) of the bits in each flags value.
source§impl Hash for RemapPathScopeComponents
impl Hash for RemapPathScopeComponents
source§impl LowerHex for RemapPathScopeComponents
impl LowerHex for RemapPathScopeComponents
source§impl Not for RemapPathScopeComponents
impl Not for RemapPathScopeComponents
source§impl Octal for RemapPathScopeComponents
impl Octal for RemapPathScopeComponents
source§impl PartialEq for RemapPathScopeComponents
impl PartialEq for RemapPathScopeComponents
source§fn eq(&self, other: &RemapPathScopeComponents) -> bool
fn eq(&self, other: &RemapPathScopeComponents) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for RemapPathScopeComponents
impl Sub for RemapPathScopeComponents
source§fn sub(self, other: Self) -> Self
fn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
§type Output = RemapPathScopeComponents
type Output = RemapPathScopeComponents
-
operator.source§impl SubAssign for RemapPathScopeComponents
impl SubAssign for RemapPathScopeComponents
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
source§impl UpperHex for RemapPathScopeComponents
impl UpperHex for RemapPathScopeComponents
impl Copy for RemapPathScopeComponents
impl Eq for RemapPathScopeComponents
impl StructuralPartialEq for RemapPathScopeComponents
Auto Trait Implementations§
impl DynSend for RemapPathScopeComponents
impl DynSync for RemapPathScopeComponents
impl Freeze for RemapPathScopeComponents
impl RefUnwindSafe for RemapPathScopeComponents
impl Send for RemapPathScopeComponents
impl Sync for RemapPathScopeComponents
impl Unpin for RemapPathScopeComponents
impl UnwindSafe for RemapPathScopeComponents
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
source§impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = T> ) -> &'a mut [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
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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
§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
key
and return true
if they are equal.§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync 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: 1 byte