Struct rustc_borrowck::diagnostics::region_name::RegionName
source · pub(crate) struct RegionName {
pub(crate) name: Symbol,
pub(crate) source: RegionNameSource,
}
Expand description
A name for a particular region used in emitting diagnostics. This name could be a generated
name like '1
, a name used by the user like 'a
, or a name like 'static
.
Fields§
§name: Symbol
The name of the region (interned).
source: RegionNameSource
Where the region comes from.
Implementations§
source§impl RegionName
impl RegionName
pub(crate) fn was_named(&self) -> bool
pub(crate) fn span(&self) -> Option<Span>
pub(crate) fn highlight_region_name(&self, diag: &mut Diagnostic)
Trait Implementations§
source§impl Clone for RegionName
impl Clone for RegionName
source§fn clone(&self) -> RegionName
fn clone(&self) -> RegionName
Returns a copy of the value. Read more
1.0.0 · 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 RegionName
impl Debug for RegionName
source§impl Display for RegionName
impl Display for RegionName
source§impl IntoDiagnosticArg for &RegionName
impl IntoDiagnosticArg for &RegionName
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
source§impl IntoDiagnosticArg for RegionName
impl IntoDiagnosticArg for RegionName
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
Auto Trait Implementations§
impl RefUnwindSafe for RegionName
impl !Send for RegionName
impl !Sync for RegionName
impl Unpin for RegionName
impl UnwindSafe for RegionName
Blanket Implementations§
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: 72 bytes