/// Adds chaining methods tap to every type.
pubtraitTap{/// Applies `f` to the value for its side effects, and returns the original value.
////// # Examples
/// ```
/// use chaining::*;
////// let xs = &[1, 2, 3].tap(|xs| println!("debug {}", xs.len()));
/// assert_eq!(&[1, 2, 3], xs);
/// ```
fntap<F>(self, f: F)->SelfwhereSelf: Sized,
F: Fn(&Self),
{f(&self);self}}impl<A> Tap forA{}