finchers_core/endpoint/
mod.rs

1//! Components for constructing `Endpoint`.
2
3mod apply;
4mod context;
5mod endpoint;
6
7// re-exports
8pub use self::apply::ApplyRequest;
9pub use self::context::{Context, EncodedStr, Segment, Segments};
10pub use self::endpoint::{Endpoint, IntoEndpoint};
11
12/// An identity function for giving additional trait bound to an endpoint.alloc
13///
14/// This function is usually used in the implementation of library.
15#[inline(always)]
16pub fn assert_output<E, T>(endpoint: E) -> E
17where
18    E: Endpoint<Output = T>,
19{
20    endpoint
21}