MaximumWeight

object MaximumWeight extends Subtype[Long]
class Subtype[Long]
class Newtype[Long]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

trait Tag
Inherited from:
Newtype

Inherited types

type Base <: A
Inherited from:
Subtype
type Type = Base & Tag
Inherited from:
Newtype

Value members

Concrete methods

inline override def assertion: Assertion[Long]
Definition Classes

Inherited methods

inline def apply(inline value: Long, inline values: Long*): NonEmptyChunk[Type]
Inherited from:
Newtype
inline def apply(inline value: Long): Type

Converts an instance of the underlying type to an instance of the newtype.

Converts an instance of the underlying type to an instance of the newtype.

Inherited from:
Newtype
protected def derive[TypeClass[_]](implicit instance: TypeClass[Long]): TypeClass[Type]

Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.

Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.

Inherited from:
Newtype
def make(value: Long): Validation[String, Type]
Inherited from:
Newtype
def makeAll[F[_] : ForEach](value: F[Long]): Validation[String, F[Type]]
Inherited from:
Newtype
def unapply(value: Type): Some[Long]

Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

Inherited from:
Newtype
def unwrap(value: Type): Long

Converts an instance of the newtype back to an instance of the underlying type.

Converts an instance of the newtype back to an instance of the underlying type.

Inherited from:
Newtype
def unwrapAll[F[_]](value: F[Type]): F[Long]

Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

Inherited from:
Newtype
protected def wrap(value: Long): Type

Converts an instance of the underlying type to an instance of the newtype. Ignores the assertion.

Converts an instance of the underlying type to an instance of the newtype. Ignores the assertion.

Inherited from:
Newtype