Struct null_kane::Currency

source ·
pub struct Currency<L: CurrencyLocale + Default> { /* private fields */ }

Implementations§

source§

impl<L: CurrencyLocale + Default> Currency<L>

source

pub fn new(negative: bool, full: usize, part: u8, locale: L) -> Self

Trait Implementations§

source§

impl<L, T> Add<T> for Currency<L>
where T: Into<Currency<L>>, L: CurrencyLocale + Default,

§

type Output = Currency<L>

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
source§

impl<L, T> AddAssign<T> for Currency<L>
where T: Into<Currency<L>>, L: CurrencyLocale + Default + Clone,

source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
source§

impl<L: Clone + CurrencyLocale + Default> Clone for Currency<L>

source§

fn clone(&self) -> Currency<L>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<L: Debug + CurrencyLocale + Default> Debug for Currency<L>

source§

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

Formats the value using the given formatter. Read more
source§

impl<L: Default + CurrencyLocale + Default> Default for Currency<L>

source§

fn default() -> Currency<L>

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

impl<L> Display for Currency<L>

source§

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

Formats the value using the given formatter. Read more
source§

impl<L: CurrencyLocale + Default> Div<f32> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
source§

impl<L: CurrencyLocale + Default> Div<f64> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
source§

impl<L: CurrencyLocale + Default> Div<usize> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the / operator.
source§

fn div(self, rhs: usize) -> Self::Output

Performs the / operation. Read more
source§

impl<L> From<Currency<L>> for f32

source§

fn from(value: Currency<L>) -> Self

Converts to this type from the input type.
source§

impl<L> From<f32> for Currency<L>

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl<L> From<f64> for Currency<L>

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl<L> From<usize> for Currency<L>

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl<L: CurrencyLocale + Default> Mul<f32> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
source§

impl<L: CurrencyLocale + Default> Mul<f64> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
source§

impl<L: CurrencyLocale + Default> Mul<usize> for Currency<L>

§

type Output = Currency<L>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: usize) -> Self::Output

Performs the * operation. Read more
source§

impl<L: PartialEq + CurrencyLocale + Default> PartialEq for Currency<L>

source§

fn eq(&self, other: &Currency<L>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<L, T> Sub<T> for Currency<L>
where T: Into<Currency<L>>, L: CurrencyLocale + Default,

§

type Output = Currency<L>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
source§

impl<L, T> SubAssign<T> for Currency<L>
where T: Into<Currency<L>>, L: CurrencyLocale + Default + Clone,

source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
source§

impl<L: Copy + CurrencyLocale + Default> Copy for Currency<L>

source§

impl<L: Eq + CurrencyLocale + Default> Eq for Currency<L>

source§

impl<L: CurrencyLocale + Default> StructuralEq for Currency<L>

source§

impl<L: CurrencyLocale + Default> StructuralPartialEq for Currency<L>

Auto Trait Implementations§

§

impl<L> RefUnwindSafe for Currency<L>
where L: RefUnwindSafe,

§

impl<L> Send for Currency<L>
where L: Send,

§

impl<L> Sync for Currency<L>
where L: Sync,

§

impl<L> Unpin for Currency<L>
where L: Unpin,

§

impl<L> UnwindSafe for Currency<L>
where L: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.