Enum rustc_transmute::Condition
source · pub enum Condition<R> {
IfTransmutable {
src: R,
dst: R,
},
IfAll(Vec<Condition<R>>),
IfAny(Vec<Condition<R>>),
}
Expand description
A condition which must hold for safe transmutation to be possible.
Variants§
IfTransmutable
Src
is transmutable into Dst
, if src
is transmutable into dst
.
IfAll(Vec<Condition<R>>)
Src
is transmutable into Dst
, if all of the enclosed requirements are met.
IfAny(Vec<Condition<R>>)
Src
is transmutable into Dst
if any of the enclosed requirements are met.
Trait Implementations§
source§impl<R: PartialEq> PartialEq<Condition<R>> for Condition<R>
impl<R: PartialEq> PartialEq<Condition<R>> for Condition<R>
impl<R: Eq> Eq for Condition<R>
impl<R> StructuralEq for Condition<R>
impl<R> StructuralPartialEq for Condition<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for Condition<R>where R: RefUnwindSafe,
impl<R> Send for Condition<R>where R: Send,
impl<R> Sync for Condition<R>where R: Sync,
impl<R> Unpin for Condition<R>where R: Unpin,
impl<R> UnwindSafe for Condition<R>where R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.