[][src]Struct fm_plugin::ffi::fixed_point::FixPt

pub struct FixPt { /* fields omitted */ }

Implementations

impl FixPt[src]

pub fn new(val: i32, precision: i32) -> FixPt[src]

pub fn from_ptr(ptr: *const fmx_FixPt) -> FixPt[src]

pub fn clone_precision(&self, val: i32) -> FixPt[src]

pub fn assign(&mut self, fixed_point: FixPt)[src]

pub fn assign_i32(&mut self, num: i32)[src]

pub fn assign_i64(&mut self, num: i64)[src]

pub fn assign_float(&mut self, num: f64)[src]

pub fn get_precision(&self) -> i32[src]

pub fn set_precision(&mut self, precision: i32)[src]

Trait Implementations

impl Add<FixPt> for FixPt[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i32> for FixPt[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i64> for FixPt[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<FixPt> for FixPt[src]

impl AddAssign<i32> for FixPt[src]

impl AddAssign<i64> for FixPt[src]

impl Clone for FixPt[src]

impl Default for FixPt[src]

impl Div<FixPt> for FixPt[src]

type Output = Self

The resulting type after applying the / operator.

impl Drop for FixPt[src]

impl Eq for FixPt[src]

impl<'_> From<&'_ FixPt> for i32[src]

impl From<FixPt> for i32[src]

impl From<FixPt> for i64[src]

impl From<FixPt> for bool[src]

impl From<FixPt> for f64[src]

impl From<f64> for FixPt[src]

impl From<i32> for FixPt[src]

impl From<i64> for FixPt[src]

impl Mul<FixPt> for FixPt[src]

type Output = Self

The resulting type after applying the * operator.

impl Neg for FixPt[src]

type Output = Self

The resulting type after applying the - operator.

impl Ord for FixPt[src]

impl PartialEq<FixPt> for FixPt[src]

impl PartialEq<i32> for FixPt[src]

impl PartialOrd<FixPt> for FixPt[src]

impl Rem<FixPt> for FixPt[src]

type Output = Self

The resulting type after applying the % operator.

impl StructuralEq for FixPt[src]

impl Sub<FixPt> for FixPt[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<FixPt> for FixPt[src]

impl SubAssign<i32> for FixPt[src]

impl SubAssign<i64> for FixPt[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.