Struct tract_pulse::internal::f16[]

pub struct f16(pub f16);

Trait Implementations

impl<'_> Add<&'_ f16> for f16

type Output = f16

The resulting type after applying the + operator.

pub fn add(self, other: &f16) -> f16

Performs the + operation. Read more

impl Add<f16> for f16

type Output = f16

The resulting type after applying the + operator.

pub fn add(self, other: f16) -> f16

Performs the + operation. Read more

impl AddAssign<f16> for f16

pub fn add_assign(&mut self, other: f16)

Performs the += operation. Read more

impl AsPrimitive<f16> for usize

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for f64

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for u32

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for i16

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for i8

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for u16

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for u8

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for i64

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for i32

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for u64

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for f16

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for f32

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f16> for isize

pub fn as_(self) -> f16

Convert a value to another, using the as operator.

impl AsPrimitive<f32> for f16

pub fn as_(self) -> f32

Convert a value to another, using the as operator.

impl AsPrimitive<f64> for f16

pub fn as_(self) -> f64

Convert a value to another, using the as operator.

impl AsPrimitive<i16> for f16

pub fn as_(self) -> i16

Convert a value to another, using the as operator.

impl AsPrimitive<i32> for f16

pub fn as_(self) -> i32

Convert a value to another, using the as operator.

impl AsPrimitive<i64> for f16

pub fn as_(self) -> i64

Convert a value to another, using the as operator.

impl AsPrimitive<i8> for f16

pub fn as_(self) -> i8

Convert a value to another, using the as operator.

impl AsPrimitive<isize> for f16

pub fn as_(self) -> isize

Convert a value to another, using the as operator.

impl AsPrimitive<u16> for f16

pub fn as_(self) -> u16

Convert a value to another, using the as operator.

impl AsPrimitive<u32> for f16

pub fn as_(self) -> u32

Convert a value to another, using the as operator.

impl AsPrimitive<u64> for f16

pub fn as_(self) -> u64

Convert a value to another, using the as operator.

impl AsPrimitive<u8> for f16

pub fn as_(self) -> u8

Convert a value to another, using the as operator.

impl AsPrimitive<usize> for f16

pub fn as_(self) -> usize

Convert a value to another, using the as operator.

impl Bounded for f16

pub fn min_value() -> f16

returns the smallest finite number this type can represent

pub fn max_value() -> f16

returns the largest finite number this type can represent

impl Clone for f16

pub fn clone(&self) -> f16

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Datum for f16

pub fn name() -> &'static str

pub fn datum_type() -> DatumType

impl Debug for f16

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl Default for f16

pub fn default() -> f16

Returns the “default value” for a type. Read more

impl Display for f16

pub fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl<'_> Div<&'_ f16> for f16

type Output = f16

The resulting type after applying the / operator.

pub fn div(self, other: &f16) -> f16

Performs the / operation. Read more

impl Div<f16> for f16

type Output = f16

The resulting type after applying the / operator.

pub fn div(self, other: f16) -> f16

Performs the / operation. Read more

impl DivAssign<f16> for f16

pub fn div_assign(&mut self, other: f16)

Performs the /= operation. Read more

impl Float for f16

pub fn floor(self) -> f16

Returns the largest integer less than or equal to a number. Read more

pub fn ceil(self) -> f16

Returns the smallest integer greater than or equal to a number. Read more

pub fn round(self) -> f16

Returns the nearest integer to a number. Round half-way cases away from 0.0. Read more

pub fn trunc(self) -> f16

Return the integer part of a number. Read more

pub fn fract(self) -> f16

Returns the fractional part of a number. Read more

pub fn abs(self) -> f16

Computes the absolute value of self. Returns Float::nan() if the number is Float::nan(). Read more

pub fn recip(self) -> f16

Take the reciprocal (inverse) of a number, 1/x. Read more

pub fn sqrt(self) -> f16

Take the square root of a number. Read more

pub fn exp(self) -> f16

Returns e^(self), (the exponential function). Read more

pub fn exp2(self) -> f16

Returns 2^(self). Read more

pub fn ln(self) -> f16

Returns the natural logarithm of the number. Read more

pub fn log2(self) -> f16

Returns the base 2 logarithm of the number. Read more

pub fn log10(self) -> f16

Returns the base 10 logarithm of the number. Read more

pub fn cbrt(self) -> f16

Take the cubic root of a number. Read more

pub fn sin(self) -> f16

Computes the sine of a number (in radians). Read more

pub fn cos(self) -> f16

Computes the cosine of a number (in radians). Read more

pub fn tan(self) -> f16

Computes the tangent of a number (in radians). Read more

pub fn sinh(self) -> f16

Hyperbolic sine function. Read more

pub fn cosh(self) -> f16

Hyperbolic cosine function. Read more

pub fn tanh(self) -> f16

Hyperbolic tangent function. Read more

pub fn asin(self) -> f16

Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1]. Read more

pub fn acos(self) -> f16

Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1]. Read more

pub fn atan(self) -> f16

Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more

pub fn asinh(self) -> f16

Inverse hyperbolic sine function. Read more

pub fn acosh(self) -> f16

Inverse hyperbolic cosine function. Read more

pub fn atanh(self) -> f16

Inverse hyperbolic tangent function. Read more

pub fn exp_m1(self) -> f16

Returns e^(self) - 1 in a way that is accurate even if the number is close to zero. Read more

pub fn ln_1p(self) -> f16

Returns ln(1+n) (natural logarithm) more accurately than if the operations were performed separately. Read more

pub fn classify(self) -> FpCategory

Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead. Read more

pub fn is_nan(self) -> bool

Returns true if this value is NaN and false otherwise. Read more

pub fn is_infinite(self) -> bool

Returns true if this value is positive infinity or negative infinity and false otherwise. Read more

pub fn is_finite(self) -> bool

Returns true if this number is neither infinite nor NaN. Read more

pub fn is_normal(self) -> bool

Returns true if the number is neither zero, infinite, subnormal, or NaN. Read more

pub fn is_sign_positive(self) -> bool

Returns true if self is positive, including +0.0, Float::infinity(), and since Rust 1.20 also Float::nan(). Read more

pub fn is_sign_negative(self) -> bool

Returns true if self is negative, including -0.0, Float::neg_infinity(), and since Rust 1.20 also -Float::nan(). Read more

pub fn powf(self, other: f16) -> f16

Raise a number to a floating point power. Read more

pub fn log(self, other: f16) -> f16

Returns the logarithm of the number with respect to an arbitrary base. Read more

pub fn max(self, other: f16) -> f16

Returns the maximum of the two numbers. Read more

pub fn min(self, other: f16) -> f16

Returns the minimum of the two numbers. Read more

pub fn abs_sub(self, other: f16) -> f16

The positive difference of two numbers. Read more

pub fn hypot(self, other: f16) -> f16

Calculate the length of the hypotenuse of a right-angle triangle given legs of length x and y. Read more

pub fn atan2(self, other: f16) -> f16

Computes the four quadrant arctangent of self (y) and other (x). Read more

pub fn nan() -> f16

Returns the NaN value. Read more

pub fn infinity() -> f16

Returns the infinite value. Read more

pub fn neg_infinity() -> f16

Returns the negative infinite value. Read more

pub fn neg_zero() -> f16

Returns -0.0. Read more

pub fn max_value() -> f16

Returns the largest finite value that this type can represent. Read more

pub fn min_value() -> f16

Returns the smallest finite value that this type can represent. Read more

pub fn min_positive_value() -> f16

Returns the smallest positive, normalized value that this type can represent. Read more

pub fn signum(self) -> f16

Returns a number that represents the sign of self. Read more

pub fn mul_add(self, a: f16, b: f16) -> f16

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add. Read more

pub fn powi(self, i: i32) -> f16

Raise a number to an integer power. Read more

pub fn sin_cos(self) -> (f16, f16)

Simultaneously computes the sine and cosine of the number, x. Returns (sin(x), cos(x)). Read more

pub fn integer_decode(self) -> (u64, i16, i8)

Returns the mantissa, base 2 exponent, and sign as integers, respectively. The original number can be recovered by sign * mantissa * 2 ^ exponent. Read more

fn epsilon() -> Self[src]

Returns epsilon, a small positive value. Read more

fn to_degrees(self) -> Self[src]

Converts radians to degrees. Read more

fn to_radians(self) -> Self[src]

Converts degrees to radians. Read more

impl From<f16> for Tensor

pub fn from(it: f16) -> Tensor

Performs the conversion.

impl From<f32> for f16

pub fn from(f: f32) -> f16

Performs the conversion.

impl FromStr for f16

type Err = ParseFloatError

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<f16, <f16 as FromStr>::Err>

Parses a string s to return a value of this type. Read more

impl<'_> Mul<&'_ f16> for f16

type Output = f16

The resulting type after applying the * operator.

pub fn mul(self, other: &f16) -> f16

Performs the * operation. Read more

impl Mul<f16> for f16

type Output = f16

The resulting type after applying the * operator.

pub fn mul(self, other: f16) -> f16

Performs the * operation. Read more

impl Neg for f16

type Output = f16

The resulting type after applying the - operator.

pub fn neg(self) -> f16

Performs the unary - operation. Read more

impl Num for f16

type FromStrRadixErr = <f32 as Num>::FromStrRadixErr

pub fn from_str_radix(
    str: &str,
    radix: u32
) -> Result<f16, <f16 as Num>::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more

impl NumCast for f16

pub fn from<T>(n: T) -> Option<f16> where
    T: ToPrimitive

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. If the source value cannot be represented by the target type, then None is returned. Read more

impl One for f16

pub fn one() -> f16

Returns the multiplicative identity element of Self, 1. Read more

fn set_one(&mut self)[src]

Sets self to the multiplicative identity element of Self, 1.

fn is_one(&self) -> bool where
    Self: PartialEq<Self>, 
[src]

Returns true if self is equal to the multiplicative identity. Read more

impl PartialEq<f16> for f16

pub fn eq(&self, other: &f16) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &f16) -> bool

This method tests for !=.

impl PartialOrd<f16> for f16

pub fn partial_cmp(&self, other: &f16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'_> Rem<&'_ f16> for f16

type Output = f16

The resulting type after applying the % operator.

pub fn rem(self, other: &f16) -> f16

Performs the % operation. Read more

impl Rem<f16> for f16

type Output = f16

The resulting type after applying the % operator.

pub fn rem(self, other: f16) -> f16

Performs the % operation. Read more

impl Signed for f16

pub fn abs(&self) -> f16

Computes the absolute value. Read more

pub fn abs_sub(&self, other: &f16) -> f16

The positive difference of two numbers. Read more

pub fn signum(&self) -> f16

Returns the sign of the number. Read more

pub fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.

pub fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.

impl SloppyHash for f16

pub fn sloppy_hash<S>(&self, state: &mut S) where
    S: Hasher

impl<'_> Sub<&'_ f16> for f16

type Output = f16

The resulting type after applying the - operator.

pub fn sub(self, other: &f16) -> f16

Performs the - operation. Read more

impl Sub<f16> for f16

type Output = f16

The resulting type after applying the - operator.

pub fn sub(self, other: f16) -> f16

Performs the - operation. Read more

impl<'a> Sum<&'a f16> for f16

pub fn sum<I>(iter: I) -> f16 where
    I: Iterator<Item = &'a f16>, 

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

impl Sum<f16> for f16

pub fn sum<I>(iter: I) -> f16 where
    I: Iterator<Item = f16>, 

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

impl ToPrimitive for f16

pub fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned. Read more

pub fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned. Read more

fn to_isize(&self) -> Option<isize>[src]

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned. Read more

fn to_i8(&self) -> Option<i8>[src]

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned. Read more

fn to_i16(&self) -> Option<i16>[src]

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned. Read more

fn to_i32(&self) -> Option<i32>[src]

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned. Read more

fn to_i128(&self) -> Option<i128>[src]

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more

fn to_usize(&self) -> Option<usize>[src]

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned. Read more

fn to_u8(&self) -> Option<u8>[src]

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned. Read more

fn to_u16(&self) -> Option<u16>[src]

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned. Read more

fn to_u32(&self) -> Option<u32>[src]

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned. Read more

fn to_u128(&self) -> Option<u128>[src]

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more

fn to_f32(&self) -> Option<f32>[src]

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32. Read more

fn to_f64(&self) -> Option<f64>[src]

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more

impl Zero for f16

pub fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.

pub fn zero() -> f16

Returns the additive identity element of Self, 0. Read more

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Copy for f16

impl StructuralPartialEq for f16

Auto Trait Implementations

impl RefUnwindSafe for f16

impl Send for f16

impl Sync for f16

impl Unpin for f16

impl UnwindSafe for f16

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Conv for T

fn conv<T>(self) -> T where
    Self: Into<T>, 

Converts self into T using Into<T>. Read more

impl<T> Conv for T

fn conv<T>(self) -> T where
    Self: Into<T>, 

Converts self into a target type. Read more

impl<T> Downcast for T where
    T: Any
[src]

pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<F, A> Future for Box<F, A> where
    A: Allocator + 'static,
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;
[src]

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

pub fn as_any(&self) -> &(dyn Any + 'static)[src]

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

pub fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + 'static + Sync + Send>[src]

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

impl<T> DynClone for T where
    T: Clone
[src]

pub fn __clone_box(&self, Private) -> *mut ()[src]

impl<T> FmtForward for T

fn fmt_binary(self) -> FmtBinary<Self> where
    Self: Binary

Causes self to use its Binary implementation when Debug-formatted.

fn fmt_display(self) -> FmtDisplay<Self> where
    Self: Display

Causes self to use its Display implementation when Debug-formatted. Read more

fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
    Self: LowerExp

Causes self to use its LowerExp implementation when Debug-formatted. Read more

fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
    Self: LowerHex

Causes self to use its LowerHex implementation when Debug-formatted. Read more

fn fmt_octal(self) -> FmtOctal<Self> where
    Self: Octal

Causes self to use its Octal implementation when Debug-formatted.

fn fmt_pointer(self) -> FmtPointer<Self> where
    Self: Pointer

Causes self to use its Pointer implementation when Debug-formatted. Read more

fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
    Self: UpperExp

Causes self to use its UpperExp implementation when Debug-formatted. Read more

fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
    Self: UpperHex

Causes self to use its UpperHex implementation when Debug-formatted. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pipe for T where
    T: ?Sized

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R

Pipes by value. This is generally the method you want to use. Read more

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
    R: 'a, 

Borrows self and passes that borrow into the pipe function. Read more

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
    R: 'a, 

Mutably borrows self and passes that borrow into the pipe function. Read more

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
    Self: Borrow<B>,
    B: 'a + ?Sized,
    R: 'a, 

Borrows self, then passes self.borrow() into the pipe function. Read more

fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R
) -> R where
    Self: BorrowMut<B>,
    B: 'a + ?Sized,
    R: 'a, 

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
    Self: AsRef<U>,
    R: 'a,
    U: 'a + ?Sized

Borrows self, then passes self.as_ref() into the pipe function.

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R where
    Self: AsMut<U>,
    R: 'a,
    U: 'a + ?Sized

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
    Self: Deref<Target = T>,
    T: 'a + ?Sized,
    R: 'a, 

Borrows self, then passes self.deref() into the pipe function.

fn pipe_deref_mut<'a, T, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut T) -> R
) -> R where
    Self: DerefMut<Target = T> + Deref,
    T: 'a + ?Sized,
    R: 'a, 

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

impl<T> Pipe for T

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

impl<T> PipeAsRef for T

fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
    Self: AsRef<T>,
    T: 'a,
    R: 'a, 

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
    Self: AsMut<T>,
    T: 'a,
    R: 'a, 

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

impl<T> PipeBorrow for T

fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
    Self: Borrow<T>,
    T: 'a,
    R: 'a, 

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

fn pipe_borrow_mut<'a, T, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut T) -> R
) -> R where
    Self: BorrowMut<T>,
    T: 'a,
    R: 'a, 

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

impl<T> PipeDeref for T

fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
    Self: Deref,
    R: 'a, 

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

fn pipe_deref_mut<'a, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
    Self: DerefMut,
    R: 'a, 

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

impl<T> PipeRef for T

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
    R: 'a, 

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
    R: 'a, 

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

impl<T> Real for T where
    T: Float
[src]

pub fn min_value() -> T[src]

Returns the smallest finite value that this type can represent. Read more

pub fn min_positive_value() -> T[src]

Returns the smallest positive, normalized value that this type can represent. Read more

pub fn epsilon() -> T[src]

Returns epsilon, a small positive value. Read more

pub fn max_value() -> T[src]

Returns the largest finite value that this type can represent. Read more

pub fn floor(self) -> T[src]

Returns the largest integer less than or equal to a number. Read more

pub fn ceil(self) -> T[src]

Returns the smallest integer greater than or equal to a number. Read more

pub fn round(self) -> T[src]

Returns the nearest integer to a number. Round half-way cases away from 0.0. Read more

pub fn trunc(self) -> T[src]

Return the integer part of a number. Read more

pub fn fract(self) -> T[src]

Returns the fractional part of a number. Read more

pub fn abs(self) -> T[src]

Computes the absolute value of self. Returns Float::nan() if the number is Float::nan(). Read more

pub fn signum(self) -> T[src]

Returns a number that represents the sign of self. Read more

pub fn is_sign_positive(self) -> bool[src]

Returns true if self is positive, including +0.0, Float::infinity(), and with newer versions of Rust f64::NAN. Read more

pub fn is_sign_negative(self) -> bool[src]

Returns true if self is negative, including -0.0, Float::neg_infinity(), and with newer versions of Rust -f64::NAN. Read more

pub fn mul_add(self, a: T, b: T) -> T[src]

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add. Read more

pub fn recip(self) -> T[src]

Take the reciprocal (inverse) of a number, 1/x. Read more

pub fn powi(self, n: i32) -> T[src]

Raise a number to an integer power. Read more

pub fn powf(self, n: T) -> T[src]

Raise a number to a real number power. Read more

pub fn sqrt(self) -> T[src]

Take the square root of a number. Read more

pub fn exp(self) -> T[src]

Returns e^(self), (the exponential function). Read more

pub fn exp2(self) -> T[src]

Returns 2^(self). Read more

pub fn ln(self) -> T[src]

Returns the natural logarithm of the number. Read more

pub fn log(self, base: T) -> T[src]

Returns the logarithm of the number with respect to an arbitrary base. Read more

pub fn log2(self) -> T[src]

Returns the base 2 logarithm of the number. Read more

pub fn log10(self) -> T[src]

Returns the base 10 logarithm of the number. Read more

pub fn to_degrees(self) -> T[src]

Converts radians to degrees. Read more

pub fn to_radians(self) -> T[src]

Converts degrees to radians. Read more

pub fn max(self, other: T) -> T[src]

Returns the maximum of the two numbers. Read more

pub fn min(self, other: T) -> T[src]

Returns the minimum of the two numbers. Read more

pub fn abs_sub(self, other: T) -> T[src]

The positive difference of two numbers. Read more

pub fn cbrt(self) -> T[src]

Take the cubic root of a number. Read more

pub fn hypot(self, other: T) -> T[src]

Calculate the length of the hypotenuse of a right-angle triangle given legs of length x and y. Read more

pub fn sin(self) -> T[src]

Computes the sine of a number (in radians). Read more

pub fn cos(self) -> T[src]

Computes the cosine of a number (in radians). Read more

pub fn tan(self) -> T[src]

Computes the tangent of a number (in radians). Read more

pub fn asin(self) -> T[src]

Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1]. Read more

pub fn acos(self) -> T[src]

Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1]. Read more

pub fn atan(self) -> T[src]

Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more

pub fn atan2(self, other: T) -> T[src]

Computes the four quadrant arctangent of self (y) and other (x). Read more

pub fn sin_cos(self) -> (T, T)[src]

Simultaneously computes the sine and cosine of the number, x. Returns (sin(x), cos(x)). Read more

pub fn exp_m1(self) -> T[src]

Returns e^(self) - 1 in a way that is accurate even if the number is close to zero. Read more

pub fn ln_1p(self) -> T[src]

Returns ln(1+n) (natural logarithm) more accurately than if the operations were performed separately. Read more

pub fn sinh(self) -> T[src]

Hyperbolic sine function. Read more

pub fn cosh(self) -> T[src]

Hyperbolic cosine function. Read more

pub fn tanh(self) -> T[src]

Hyperbolic tangent function. Read more

pub fn asinh(self) -> T[src]

Inverse hyperbolic sine function. Read more

pub fn acosh(self) -> T[src]

Inverse hyperbolic cosine function. Read more

pub fn atanh(self) -> T[src]

Inverse hyperbolic tangent function. Read more

impl<T> Tap for T

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
    Self: Borrow<B>,
    B: ?Sized

Immutable access to the Borrow<B> of a value. Read more

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
    Self: BorrowMut<B>,
    B: ?Sized

Mutable access to the BorrowMut<B> of a value. Read more

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
    Self: AsRef<R>,
    R: ?Sized

Immutable access to the AsRef<R> view of a value. Read more

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
    Self: AsMut<R>,
    R: ?Sized

Mutable access to the AsMut<R> view of a value. Read more

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
    Self: Deref<Target = T>,
    T: ?Sized

Immutable access to the Deref::Target of a value. Read more

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
    Self: DerefMut<Target = T> + Deref,
    T: ?Sized

Mutable access to the Deref::Target of a value. Read more

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
    Self: Borrow<B>,
    B: ?Sized

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
    Self: BorrowMut<B>,
    B: ?Sized

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
    Self: AsRef<R>,
    R: ?Sized

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
    Self: AsMut<R>,
    R: ?Sized

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self where
    Self: Deref<Target = T>,
    T: ?Sized

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self where
    Self: DerefMut<Target = T> + Deref,
    T: ?Sized

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

impl<T> Tap for T

fn tap<F, R>(self, func: F) -> Self where
    F: FnOnce(&Self) -> R, 

Provides immutable access for inspection. Read more

fn tap_dbg<F, R>(self, func: F) -> Self where
    F: FnOnce(&Self) -> R, 

Calls tap in debug builds, and does nothing in release builds.

fn tap_mut<F, R>(self, func: F) -> Self where
    F: FnOnce(&mut Self) -> R, 

Provides mutable access for modification. Read more

fn tap_mut_dbg<F, R>(self, func: F) -> Self where
    F: FnOnce(&mut Self) -> R, 

Calls tap_mut in debug builds, and does nothing in release builds.

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

fn tap_ref<F, R>(self, func: F) -> Self where
    Self: AsRef<T>,
    F: FnOnce(&T) -> R, 

Provides immutable access to the reference for inspection.

fn tap_ref_dbg<F, R>(self, func: F) -> Self where
    Self: AsRef<T>,
    F: FnOnce(&T) -> R, 

Calls tap_ref in debug builds, and does nothing in release builds.

fn tap_ref_mut<F, R>(self, func: F) -> Self where
    Self: AsMut<T>,
    F: FnOnce(&mut T) -> R, 

Provides mutable access to the reference for modification.

fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
    Self: AsMut<T>,
    F: FnOnce(&mut T) -> R, 

Calls tap_ref_mut in debug builds, and does nothing in release builds.

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

fn tap_borrow<F, R>(self, func: F) -> Self where
    Self: Borrow<T>,
    F: FnOnce(&T) -> R, 

Provides immutable access to the borrow for inspection. Read more

fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
    Self: Borrow<T>,
    F: FnOnce(&T) -> R, 

Calls tap_borrow in debug builds, and does nothing in release builds.

fn tap_borrow_mut<F, R>(self, func: F) -> Self where
    Self: BorrowMut<T>,
    F: FnOnce(&mut T) -> R, 

Provides mutable access to the borrow for modification.

fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
    Self: BorrowMut<T>,
    F: FnOnce(&mut T) -> R, 

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

impl<T> TapDeref for T

fn tap_deref<F, R>(self, func: F) -> Self where
    Self: Deref,
    F: FnOnce(&Self::Target) -> R, 

Immutably dereferences self for inspection.

fn tap_deref_dbg<F, R>(self, func: F) -> Self where
    Self: Deref,
    F: FnOnce(&Self::Target) -> R, 

Calls tap_deref in debug builds, and does nothing in release builds.

fn tap_deref_mut<F, R>(self, func: F) -> Self where
    Self: DerefMut,
    F: FnOnce(&mut Self::Target) -> R, 

Mutably dereferences self for modification.

fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
    Self: DerefMut,
    F: FnOnce(&mut Self::Target) -> R, 

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T> TryConv for T

fn try_conv<T>(self) -> Result<T, Self::Error> where
    Self: TryInto<T>, 

Attempts to convert self into T using TryInto<T>. Read more

impl<T> TryConv for T

fn try_conv<T>(self) -> Result<T, Self::Error> where
    Self: TryInto<T>, 

Attempts to convert self into a target type. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> LinalgScalar for T where
    T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> NumRef for T where
    T: Num + for<'r> NumOps<&'r T, T>, 
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]