Enum rustc::infer::TypeOrigin [] [src]

pub enum TypeOrigin {
    Misc(Span),
    MethodCompatCheck(Span),
    ExprAssignable(Span),
    RelateTraitRefs(Span),
    RelateSelfType(Span),
    RelateOutputImplTypes(Span),
    MatchExpressionArm(SpanSpanMatchSource),
    IfExpression(Span),
    IfExpressionWithNoElse(Span),
    RangeExpression(Span),
    EquatePredicate(Span),
}
Unstable (rustc_private)

Why did we require that the two types be related?

See error_reporting.rs for more details

Variants

Misc(Span)
Unstable (rustc_private)
MethodCompatCheck(Span)
Unstable (rustc_private)
ExprAssignable(Span)
Unstable (rustc_private)
RelateTraitRefs(Span)
Unstable (rustc_private)
RelateSelfType(Span)
Unstable (rustc_private)
RelateOutputImplTypes(Span)
Unstable (rustc_private)
MatchExpressionArm(SpanSpanMatchSource)
Unstable (rustc_private)
IfExpression(Span)
Unstable (rustc_private)
IfExpressionWithNoElse(Span)
Unstable (rustc_private)
RangeExpression(Span)
Unstable (rustc_private)
EquatePredicate(Span)
Unstable (rustc_private)

Methods

impl TypeOrigin
[src]

fn span(&self) -> Span

Trait Implementations

impl Display for TypeOrigin
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

Derived Implementations

impl Debug for TypeOrigin
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for TypeOrigin
[src]

impl Clone for TypeOrigin
[src]

fn clone(&self) -> TypeOrigin

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more