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
sourceimpl 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
sourceimpl Clone for RegionName
impl Clone for RegionName
sourcefn clone(&self) -> RegionName
fn clone(&self) -> RegionName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RegionName
impl Debug for RegionName
sourceimpl Display for RegionName
impl Display for RegionName
sourceimpl IntoDiagnosticArg for &RegionName
impl IntoDiagnosticArg for &RegionName
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 64 bytes