#[repr(C)]pub struct TarFormatDecimal<const N: usize>(/* private fields */);
Expand description
A decimal number. Trailing spaces in the string are ignored.
Implementations§
Source§impl<const N: usize> TarFormatDecimal<N>
impl<const N: usize> TarFormatDecimal<N>
pub fn as_number<T>(&self) -> Result<T, T::FromStrRadixErr>where
T: Num,
Sourcepub const fn as_inner(&self) -> &TarFormatString<N>
pub const fn as_inner(&self) -> &TarFormatString<N>
Returns the underlying TarFormatString
.
Trait Implementations§
Source§impl<const N: usize> Clone for TarFormatDecimal<N>
impl<const N: usize> Clone for TarFormatDecimal<N>
Source§fn clone(&self) -> TarFormatDecimal<N>
fn clone(&self) -> TarFormatDecimal<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const N: usize> Debug for TarFormatDecimal<N>
impl<const N: usize> Debug for TarFormatDecimal<N>
Source§impl<const N: usize> PartialEq for TarFormatDecimal<N>
impl<const N: usize> PartialEq for TarFormatDecimal<N>
impl<const N: usize> Copy for TarFormatDecimal<N>
impl<const N: usize> Eq for TarFormatDecimal<N>
impl<const N: usize> StructuralPartialEq for TarFormatDecimal<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for TarFormatDecimal<N>
impl<const N: usize> RefUnwindSafe for TarFormatDecimal<N>
impl<const N: usize> Send for TarFormatDecimal<N>
impl<const N: usize> Sync for TarFormatDecimal<N>
impl<const N: usize> Unpin for TarFormatDecimal<N>
impl<const N: usize> UnwindSafe for TarFormatDecimal<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more