Attach

Trait Attach 

Source
pub trait Attach<Wrapper>: Sized {
    // Required method
    fn attach_location(self, location: Location) -> Wrapper;

    // Provided method
    fn attach(self) -> Wrapper { ... }
}

Required Methods§

Source

fn attach_location(self, location: Location) -> Wrapper

Provided Methods§

Source

fn attach(self) -> Wrapper

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E: Error2> Attach<Result<T, E>> for Result<T, E>

Source§

fn attach_location(self, location: Location) -> Self

Implementors§

Source§

impl<E: Error2> Attach<E> for E

Source§

impl<T, W> Attach<AttachIter<T, W>> for T
where T: Iterator, T::Item: Attach<W>,