s3-server 0.2.0

An experimental generic S3 server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! `Apply` trait

/// Extends all sized types with an `apply` method
pub trait Apply: Sized {
    /// apply `f` to self
    #[inline]
    fn apply<R>(self, f: impl FnOnce(Self) -> R) -> R {
        f(self)
    }
}

impl<T: Sized> Apply for T {}