Struct kalk::kalk_num::with_rug::KalkNum [−][src]
pub struct KalkNum { /* fields omitted */ }
Implementations
impl KalkNum
[src]
impl KalkNum
[src]pub fn new(value: Float, unit: &str) -> Self
[src]
pub fn to_f64(&self) -> f64
[src]
pub fn to_string(&self) -> String
[src]
pub fn to_string_big(&self) -> String
[src]
pub fn is_too_big(&self) -> bool
[src]
pub fn to_string_with_unit(&self) -> String
[src]
pub fn get_unit(&self) -> &str
[src]
pub fn has_unit(&self) -> bool
[src]
pub fn to_scientific_notation(&self) -> ScientificNotation
[src]
pub fn convert_to_unit(
&self,
context: &mut Context<'_>,
to_unit: &str
) -> Option<KalkNum>
[src]
&self,
context: &mut Context<'_>,
to_unit: &str
) -> Option<KalkNum>
pub fn add(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
pub fn sub(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
pub fn mul(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
pub fn div(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
pub fn rem(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
pub fn pow(self, context: &mut Context<'_>, rhs: KalkNum) -> KalkNum
[src]
Trait Implementations
impl StructuralPartialEq for KalkNum
[src]
Auto Trait Implementations
impl RefUnwindSafe for KalkNum
impl Send for KalkNum
impl Sync for KalkNum
impl Unpin for KalkNum
impl UnwindSafe for KalkNum
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CheckedAs for T
[src]
impl<T> CheckedAs for T
[src]pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]Casts the value.
impl<T> OverflowingAs for T
[src]
impl<T> OverflowingAs for T
[src]pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]Casts the value.
impl<T> SaturatingAs for T
[src]
impl<T> SaturatingAs for T
[src]pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]Casts the value.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> UnwrappedAs for T
[src]
impl<T> UnwrappedAs for T
[src]pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]Casts the value.
impl<T> WrappingAs for T
[src]
impl<T> WrappingAs for T
[src]pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]Casts the value.