pub fn map<F, U>(self, f: F) -> Infinitable<U>
  where
    F: FnOnce(T) -> U,
  {
    match self {
      Infinitable::NegInf => Infinitable::NegInf,
      Infinitable::Finite(x) => Infinitable::Finite(f(x)),
      Infinitable::PosInf => Infinitable::PosInf,
    }
  }
/// Maps a function over this.
Maps a function over this.
Maps a function over this .
pub fn map<F, U>(self, f: F) -> Infinitable<U>
  where
    F: FnOnce(T) -> U,
  {
    match self {
      Infinitable::NegInf => Infinitable::NegInf,
      Infinitable::Finite(x) => Infinitable::Finite(f(x)),
      Infinitable::PosInf => Infinitable::PosInf,
    }
  }
pub fn map < F , U > ( self , f : F ) -> Infinitable < U > where F : FnOnce ( T ) -> U , { match self { Infinitable :: NegInf => Infinitable :: NegInf , Infinitable :: Finite ( x ) => Infinitable :: Finite ( f ( x ) ) , Infinitable :: PosInf => Infinitable :: PosInf , } }
Maps a function over this.
Maps a function over this .
self
f
F
self
f
F