geogebra_types

Trait NumericAccess

source
pub trait NumericAccess: Sized
where Numeric: From<Self>,
{ // Provided methods fn pow(self, exponent: impl Into<Numeric>) -> Numeric { ... } fn real(self) -> Numeric { ... } fn imaginary(self) -> Numeric { ... } fn arg(self) -> Numeric { ... } }
Expand description

Trait for accessing numeric functions

Provided Methods§

source

fn pow(self, exponent: impl Into<Numeric>) -> Numeric

Raise the number to a power

source

fn real(self) -> Numeric

Get the real part of this number

source

fn imaginary(self) -> Numeric

Get the imaginary part of this number

source

fn arg(self) -> Numeric

Get this complex number’s argument

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> NumericAccess for T
where Numeric: From<Self>,