Skip to content

_SignedPartialArithmetic

[Source]

primitive val _SignedPartialArithmetic is
  _PartialArithmetic ref

Implements


Constructors

create

[Source]

new val create()
: _SignedPartialArithmetic val^

Returns


Public Functions

div_checked[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box div_checked[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T,
  y: T)
: (T , Bool val)

Parameters

  • x: T
  • y: T

Returns


rem_checked[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box rem_checked[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T,
  y: T)
: (T , Bool val)

Parameters

  • x: T
  • y: T

Returns


div_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box div_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T,
  y: T)
: T ?

Parameters

  • x: T
  • y: T

Returns

  • T ?

rem_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box rem_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T,
  y: T)
: T ?

Parameters

  • x: T
  • y: T

Returns

  • T ?

divrem_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box divrem_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T,
  y: T)
: (T , T) ?

Parameters

  • x: T
  • y: T

Returns

  • (T , T) ?

neg_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val)), U: _UnsignedInteger[U] val]

[Source]

fun box neg_partial[T: (_SignedInteger[T, U] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val)), U: _UnsignedInteger[U] val](
  x: T)
: T ?

Parameters

  • x: T

Returns

  • T ?

add_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val))]

[Source]

fun box add_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val | U8 val | U16 val | 
    U32 val | U64 val | U128 val | 
    ULong val | USize val))](
  x: T,
  y: T)
: T ?

Parameters

  • x: T
  • y: T

Returns

  • T ?

sub_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val))]

[Source]

fun box sub_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val | U8 val | U16 val | 
    U32 val | U64 val | U128 val | 
    ULong val | USize val))](
  x: T,
  y: T)
: T ?

Parameters

  • x: T
  • y: T

Returns

  • T ?

mul_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val))]

[Source]

fun box mul_partial[T: (Integer[T] val & (I8 val | I16 val | I32 val | 
    I64 val | I128 val | ILong val | 
    ISize val | U8 val | U16 val | 
    U32 val | U64 val | U128 val | 
    ULong val | USize val))](
  x: T,
  y: T)
: T ?

Parameters

  • x: T
  • y: T

Returns

  • T ?

eq

[Source]

fun box eq(
  that: _SignedPartialArithmetic val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: _SignedPartialArithmetic val)
: Bool val

Parameters

Returns