scalqa.lang.float.__.scala Maven / Gradle / Ivy
package scalqa; package lang; import language.implicitConversions
/**
* ### Companion Object for scala.Float
*
* This object also defines specialized custom containers for Float type,
* so the following code can run without boxing:
*
* ```
*
* val s: Float.~ = (1F <> 5F).step_~(1)
*
* val o: Float.Opt = s.readRaw_? // Holds Float.Opt(1.0)
*
* val l: Float.>< = s.>< // Holds (2.0, 3.0, 4.0)
* ```
*/
object Float extends float.custom.Containers[Float]:
/**
* Minimum
*
* Returns type minimal value defined in java.lang.Float.MIN_VALUE
*/
inline def min : Float = java.lang.Float.MIN_VALUE
/**
* Maximum
*
* Returns type maximum value defined in java.lang.Float.MAX_VALUE
*/
inline def max : Float = java.lang.Float.MAX_VALUE
/**
* Ordering
*
* Returns type natural ordering
*/
inline def ordering: G.Ordering[Float] = float.z.Math
/**
* Math interface
*
* Returns type math implementation
*
*/
inline def math : G.Math[Float] = float.z.Math
// Members ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
transparent inline def Custom = float.Custom
transparent inline def G = float.G
type _methods = float._methods
package object float:
private[scalqa] type SELF = Float; private[scalqa] inline def SELF = lang.Float
private[scalqa] type RAW = Any.Raw.Float
/*___________________________________________________________________________
__________ ____ __ ______ ____
/ __/ ___// _ | / / / __ / / _ | Scala Quick API
__\ \/ /___/ __ |/ /__/ /_/ /_/ __ | (c) 2021, Scalqa.org Inc
/_____/\____/_/ |_/____/\______/_/ |_| github.com/scalqa
___________________________________________________________________________*/