[−][src]Struct jlib::base::misc::amount::Amount
Fields
value: BigInt
offset: i32
is_native: bool
is_negative: bool
currency: Option<String>
issuer: Option<String>
Methods
impl Amount
[src]
pub fn new(
value: BigInt,
offset: i32,
is_native: bool,
is_negative: bool,
currency: Option<String>,
issuer: Option<String>
) -> Self
[src]
value: BigInt,
offset: i32,
is_native: bool,
is_negative: bool,
currency: Option<String>,
issuer: Option<String>
) -> Self
pub fn from_ramount(ramount: &RAmount) -> Amount
[src]
pub fn f64_2_usize_str(value_str: &String) -> String
[src]
pub fn from_value(value: u64) -> Self
[src]
pub fn from_json(j: String) -> Self
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn is_negative(&self) -> bool
[src]
pub fn issuer(&self) -> String
[src]
pub fn tum_to_bytes(&self) -> Vec<u8>
[src]
pub fn calc_base_str(point_len: usize) -> &'static str
[src]
Trait Implementations
Auto Trait Implementations
impl Sync for Amount
impl Send for Amount
impl Unpin for Amount
impl RefUnwindSafe for Amount
impl UnwindSafe for Amount
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Downcast for T where
T: Any,
T: Any,