Struct uptown_funk::Trap [−][src]
Implementations
impl Trap<()>
[src]
pub fn new<I: Into<String>>(message: I) -> Self
[src]
pub fn with_data<D: 'static>(self, data: D) -> Trap<D>
[src]
pub fn try_option<R: Debug>(result: Option<R>) -> Result<R, Trap>
[src]
pub fn try_result<R: Debug, E: Debug>(result: Result<R, E>) -> Result<R, Trap>
[src]
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for Trap<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for Trap<D> where
D: Send,
D: Send,
impl<D> Sync for Trap<D> where
D: Sync,
D: Sync,
impl<D> Unpin for Trap<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for Trap<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,