Enum rustc_transmute::Answer
source · pub enum Answer<R>where
R: Ref,{
Yes,
No(Reason),
IfTransmutable {
src: R,
dst: R,
},
IfAll(Vec<Answer<R>>),
IfAny(Vec<Answer<R>>),
}
Expand description
The type encodes answers to the question: “Are these types transmutable?”
Variants§
Yes
Src
is transmutable into Dst
.
No(Reason)
Src
is NOT transmutable into Dst
.
IfTransmutable
Src
is transmutable into Dst
, if src
is transmutable into dst
.
IfAll(Vec<Answer<R>>)
Src
is transmutable into Dst
, if all of the enclosed requirements are met.
IfAny(Vec<Answer<R>>)
Src
is transmutable into Dst
if any of the enclosed requirements are met.
Implementations§
Trait Implementations§
source§impl<R> Ord for Answer<R>where
R: Ref + Ord,
impl<R> Ord for Answer<R>where
R: Ref + Ord,
source§impl<R> PartialEq<Answer<R>> for Answer<R>where
R: Ref + PartialEq,
impl<R> PartialEq<Answer<R>> for Answer<R>where
R: Ref + PartialEq,
source§impl<R> PartialOrd<Answer<R>> for Answer<R>where
R: Ref + PartialOrd,
impl<R> PartialOrd<Answer<R>> for Answer<R>where
R: Ref + PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<R> Eq for Answer<R>where
R: Ref + Eq,
impl<R> StructuralEq for Answer<R>where
R: Ref,
impl<R> StructuralPartialEq for Answer<R>where
R: Ref,
Auto Trait Implementations§
impl<R> RefUnwindSafe for Answer<R>where
R: RefUnwindSafe,
impl<R> Send for Answer<R>where
R: Send,
impl<R> Sync for Answer<R>where
R: Sync,
impl<R> Unpin for Answer<R>where
R: Unpin,
impl<R> UnwindSafe for Answer<R>where
R: UnwindSafe,
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.