#[repr(C)]pub struct NumberAffinityBuilder<'shape> { /* private fields */ }Expand description
Builder for NumberAffinity
Implementations§
Source§impl<'shape> NumberAffinityBuilder<'shape>
impl<'shape> NumberAffinityBuilder<'shape>
Sourcepub const fn integer(self, bits: usize, sign: Signedness) -> Self
pub const fn integer(self, bits: usize, sign: Signedness) -> Self
Sets the number limits as integer with specified bits and sign
Sourcepub const fn signed_integer(self, bits: usize) -> Self
pub const fn signed_integer(self, bits: usize) -> Self
Sets the number limits as signed integer with specified bits
Sourcepub const fn unsigned_integer(self, bits: usize) -> Self
pub const fn unsigned_integer(self, bits: usize) -> Self
Sets the number limits as unsigned integer with specified bits
Sourcepub const fn pointer_sized_signed_integer(self) -> Self
pub const fn pointer_sized_signed_integer(self) -> Self
Sets the number limits as pointer-sized signed integer
Sourcepub const fn pointer_sized_unsigned_integer(self) -> Self
pub const fn pointer_sized_unsigned_integer(self) -> Self
Sets the number limits as pointer-sized unsigned integer
Sourcepub const fn float(
self,
sign_bits: usize,
exponent_bits: usize,
mantissa_bits: usize,
has_explicit_first_mantissa_bit: bool,
) -> Self
pub const fn float( self, sign_bits: usize, exponent_bits: usize, mantissa_bits: usize, has_explicit_first_mantissa_bit: bool, ) -> Self
Sets the number limits as float with specified bits
Sourcepub const fn fixed(
self,
sign_bits: usize,
integer_bits: usize,
fraction_bits: usize,
) -> Self
pub const fn fixed( self, sign_bits: usize, integer_bits: usize, fraction_bits: usize, ) -> Self
Sets the number limits as fixed-point with specified bits
Sourcepub const fn min(self, min: PtrConst<'shape>) -> Self
pub const fn min(self, min: PtrConst<'shape>) -> Self
Sets the min value for the NumberAffinity
Sourcepub const fn max(self, max: PtrConst<'shape>) -> Self
pub const fn max(self, max: PtrConst<'shape>) -> Self
Sets the max value for the NumberAffinity
Sourcepub const fn positive_infinity(self, value: PtrConst<'shape>) -> Self
pub const fn positive_infinity(self, value: PtrConst<'shape>) -> Self
Sets the positive infinity value for the NumberAffinity
Sourcepub const fn negative_infinity(self, value: PtrConst<'shape>) -> Self
pub const fn negative_infinity(self, value: PtrConst<'shape>) -> Self
Sets the negative infinity value for the NumberAffinity
Sourcepub const fn nan_sample(self, value: PtrConst<'shape>) -> Self
pub const fn nan_sample(self, value: PtrConst<'shape>) -> Self
Sets the NaN sample value for the NumberAffinity
Sourcepub const fn positive_zero(self, value: PtrConst<'shape>) -> Self
pub const fn positive_zero(self, value: PtrConst<'shape>) -> Self
Sets the positive zero value for the NumberAffinity
Sourcepub const fn negative_zero(self, value: PtrConst<'shape>) -> Self
pub const fn negative_zero(self, value: PtrConst<'shape>) -> Self
Sets the negative zero value for the NumberAffinity
Sourcepub const fn epsilon(self, value: PtrConst<'shape>) -> Self
pub const fn epsilon(self, value: PtrConst<'shape>) -> Self
Sets the relative uncertainty for the NumberAffinity
Sourcepub const fn build(self) -> ScalarAffinity<'shape>
pub const fn build(self) -> ScalarAffinity<'shape>
Builds the ScalarAffinity