Struct rustc_query_system::query::QueryStackFrame[−][src]

pub struct QueryStackFrame {
    pub name: &'static str,
    pub description: String,
    span: Option<Span>,
}

Description of a frame in the query stack.

This is mostly used in case of cycles for error reporting.

Fields

name: &'static strdescription: Stringspan: Option<Span>

Implementations

impl QueryStackFrame[src]

pub fn new(
    name: &'static str,
    description: String,
    span: Option<Span>,
    _hash: impl FnOnce() -> u64
) -> Self
[src]

pub fn default_span(&self, span: Span) -> Span[src]

Trait Implementations

impl Clone for QueryStackFrame[src]

impl Debug for QueryStackFrame[src]

Auto Trait Implementations

impl RefUnwindSafe for QueryStackFrame

impl !Send for QueryStackFrame

impl !Sync for QueryStackFrame

impl Unpin for QueryStackFrame

impl UnwindSafe for QueryStackFrame

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.