Struct fixed_point::FixedPoint
source · [−]pub struct FixedPoint<T, const D: u8>(pub T);
Tuple Fields
0: T
Implementations
sourceimpl<T, const D: u8> FixedPoint<T, D>
impl<T, const D: u8> FixedPoint<T, D>
Trait Implementations
sourceimpl<T: Clone, const D: u8> Clone for FixedPoint<T, D>
impl<T: Clone, const D: u8> Clone for FixedPoint<T, D>
sourcefn clone(&self) -> FixedPoint<T, D>
fn clone(&self) -> FixedPoint<T, D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug, const D: u8> Debug for FixedPoint<T, D>
impl<T: Debug, const D: u8> Debug for FixedPoint<T, D>
sourceimpl<T: Default, const D: u8> Default for FixedPoint<T, D>
impl<T: Default, const D: u8> Default for FixedPoint<T, D>
sourcefn default() -> FixedPoint<T, D>
fn default() -> FixedPoint<T, D>
Returns the “default value” for a type. Read more
sourceimpl<T, const D: u8> Display for FixedPoint<T, D> where
T: Number + Display + Into<i32> + PartialEq + From<u8> + PartialOrd,
impl<T, const D: u8> Display for FixedPoint<T, D> where
T: Number + Display + Into<i32> + PartialEq + From<u8> + PartialOrd,
sourceimpl<T: Div<Output = T>, const D: u8> Div<T> for FixedPoint<T, D>
impl<T: Div<Output = T>, const D: u8> Div<T> for FixedPoint<T, D>
type Output = FixedPoint<T, D>
type Output = FixedPoint<T, D>
The resulting type after applying the /
operator.
sourceimpl<T: PartialEq, const D: u8> PartialEq<FixedPoint<T, D>> for FixedPoint<T, D>
impl<T: PartialEq, const D: u8> PartialEq<FixedPoint<T, D>> for FixedPoint<T, D>
sourcefn eq(&self, other: &FixedPoint<T, D>) -> bool
fn eq(&self, other: &FixedPoint<T, D>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FixedPoint<T, D>) -> bool
fn ne(&self, other: &FixedPoint<T, D>) -> bool
This method tests for !=
.
impl<T: Copy, const D: u8> Copy for FixedPoint<T, D>
impl<T, const D: u8> StructuralPartialEq for FixedPoint<T, D>
Auto Trait Implementations
impl<T, const D: u8> RefUnwindSafe for FixedPoint<T, D> where
T: RefUnwindSafe,
impl<T, const D: u8> Send for FixedPoint<T, D> where
T: Send,
impl<T, const D: u8> Sync for FixedPoint<T, D> where
T: Sync,
impl<T, const D: u8> Unpin for FixedPoint<T, D> where
T: Unpin,
impl<T, const D: u8> UnwindSafe for FixedPoint<T, D> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more