pub enum OnError {
Panic,
Result(TokenStream),
}
Variants§
Panic
Result(TokenStream)
Implementations§
Source§impl OnError
impl OnError
pub fn into_token_stream(self, err_disp: &str) -> TokenStream
Auto Trait Implementations§
impl Freeze for OnError
impl RefUnwindSafe for OnError
impl !Send for OnError
impl !Sync for OnError
impl Unpin for OnError
impl UnwindSafe for OnError
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