#[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 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
Auto Trait Implementations§
impl<'shape> Freeze for NumberAffinityBuilder<'shape>
impl<'shape> RefUnwindSafe for NumberAffinityBuilder<'shape>
impl<'shape> Send for NumberAffinityBuilder<'shape>
impl<'shape> Sync for NumberAffinityBuilder<'shape>
impl<'shape> Unpin for NumberAffinityBuilder<'shape>
impl<'shape> UnwindSafe for NumberAffinityBuilder<'shape>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more