pub(crate) enum ReturnTy {
Bool,
BoolPair,
OptUnaryFunc,
OptBinaryFunc,
}Expand description
The return type of a generated override method.
Variants§
Implementations§
Source§impl ReturnTy
impl ReturnTy
pub(crate) fn tokens(&self) -> TokenStream
Sourcepub(crate) fn body(&self, expr: &Expr) -> TokenStream
pub(crate) fn body(&self, expr: &Expr) -> TokenStream
The method body for a modifier whose value is expr. A function-valued
modifier names the function, and the body converts it into the enum.
Trait Implementations§
impl Copy for ReturnTy
impl Eq for ReturnTy
impl StructuralPartialEq for ReturnTy
Auto Trait Implementations§
impl Freeze for ReturnTy
impl RefUnwindSafe for ReturnTy
impl Send for ReturnTy
impl Sync for ReturnTy
impl Unpin for ReturnTy
impl UnsafeUnpin for ReturnTy
impl UnwindSafe for ReturnTy
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