Enum rustc_smir::rustc_smir::MaybeStable
source · pub enum MaybeStable<S, R> {
Stable(S),
Rustc(R),
}Variants§
Implementations§
Trait Implementations§
source§impl<S: Clone, R: Clone> Clone for MaybeStable<S, R>
impl<S: Clone, R: Clone> Clone for MaybeStable<S, R>
source§fn clone(&self) -> MaybeStable<S, R>
fn clone(&self) -> MaybeStable<S, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S, R: PartialEq> PartialEq<R> for MaybeStable<S, R>
impl<S, R: PartialEq> PartialEq<R> for MaybeStable<S, R>
Auto Trait Implementations§
impl<S, R> RefUnwindSafe for MaybeStable<S, R>where R: RefUnwindSafe, S: RefUnwindSafe,
impl<S, R> Send for MaybeStable<S, R>where R: Send, S: Send,
impl<S, R> Sync for MaybeStable<S, R>where R: Sync, S: Sync,
impl<S, R> Unpin for MaybeStable<S, R>where R: Unpin, S: Unpin,
impl<S, R> UnwindSafe for MaybeStable<S, R>where R: UnwindSafe, S: 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.