#[repr(C)]pub struct NumberAffinityBuilder { /* private fields */ }Expand description
Builder for NumberAffinity
Implementations§
Source§impl NumberAffinityBuilder
impl NumberAffinityBuilder
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<'static>) -> Self
pub const fn min(self, min: PtrConst<'static>) -> Self
Sets the min value for the NumberAffinity
Sourcepub const fn max(self, max: PtrConst<'static>) -> Self
pub const fn max(self, max: PtrConst<'static>) -> Self
Sets the max value for the NumberAffinity
Sourcepub const fn positive_infinity(self, value: PtrConst<'static>) -> Self
pub const fn positive_infinity(self, value: PtrConst<'static>) -> Self
Sets the positive infinity value for the NumberAffinity
Sourcepub const fn negative_infinity(self, value: PtrConst<'static>) -> Self
pub const fn negative_infinity(self, value: PtrConst<'static>) -> Self
Sets the negative infinity value for the NumberAffinity
Sourcepub const fn nan_sample(self, value: PtrConst<'static>) -> Self
pub const fn nan_sample(self, value: PtrConst<'static>) -> Self
Sets the NaN sample value for the NumberAffinity
Sourcepub const fn positive_zero(self, value: PtrConst<'static>) -> Self
pub const fn positive_zero(self, value: PtrConst<'static>) -> Self
Sets the positive zero value for the NumberAffinity
Sourcepub const fn negative_zero(self, value: PtrConst<'static>) -> Self
pub const fn negative_zero(self, value: PtrConst<'static>) -> Self
Sets the negative zero value for the NumberAffinity
Sourcepub const fn epsilon(self, value: PtrConst<'static>) -> Self
pub const fn epsilon(self, value: PtrConst<'static>) -> Self
Sets the relative uncertainty for the NumberAffinity
Sourcepub const fn build(self) -> ScalarAffinity
pub const fn build(self) -> ScalarAffinity
Builds the ScalarAffinity
Auto Trait Implementations§
impl Freeze for NumberAffinityBuilder
impl RefUnwindSafe for NumberAffinityBuilder
impl Send for NumberAffinityBuilder
impl Sync for NumberAffinityBuilder
impl Unpin for NumberAffinityBuilder
impl UnwindSafe for NumberAffinityBuilder
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