Enum shades::fun::ErasedReturn
source · [−]pub enum ErasedReturn {
Void,
Expr(Type, ErasedExpr),
}
Expand description
Erased return.
Either Void
(i.e. void
) or an expression. The type of the expression is also present for convenience.
Variants
Void
Expr(Type, ErasedExpr)
Trait Implementations
sourceimpl Clone for ErasedReturn
impl Clone for ErasedReturn
sourcefn clone(&self) -> ErasedReturn
fn clone(&self) -> ErasedReturn
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ErasedReturn
impl Debug for ErasedReturn
sourceimpl PartialEq<ErasedReturn> for ErasedReturn
impl PartialEq<ErasedReturn> for ErasedReturn
sourcefn eq(&self, other: &ErasedReturn) -> bool
fn eq(&self, other: &ErasedReturn) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ErasedReturn) -> bool
fn ne(&self, other: &ErasedReturn) -> bool
This method tests for !=
.
impl StructuralPartialEq for ErasedReturn
Auto Trait Implementations
impl RefUnwindSafe for ErasedReturn
impl Send for ErasedReturn
impl Sync for ErasedReturn
impl Unpin for ErasedReturn
impl UnwindSafe for ErasedReturn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more