#![no_std]#![deny(missing_docs)]//! A tiny library for chaining free functions into method call chains.
#[cfg(test)]#[macro_use]externcrate std;modalso;pubusealso::Also;/// Represents a type which can have functions applied to it (implemented
/// by default for all types).
pubtraitApply<Res> {/// Apply a function which takes the parameter by value.
fnapply<F:FnOnce(Self)-> Res>(self, f: F)-> Res whereSelf: Sized {f(self)}/// Apply a function which takes the parameter by reference.
fnapply_ref<F:FnOnce(&Self)-> Res>(&self, f: F)-> Res{f(self)}/// Apply a function which takes the parameter by mutable reference.
fnapply_mut<F:FnOnce(&mutSelf)-> Res>(&mutself, f: F)-> Res{f(self)}}impl<T:?Sized, Res> Apply<Res>forT{// use default definitions...
}