Struct tar_no_std::TarFormatNumber
source · #[repr(C)]pub struct TarFormatNumber<const N: usize, const R: u32>(/* private fields */);
Expand description
A number with a specified base. Trailing spaces in the string are ignored.
Implementations§
source§impl<const N: usize, const R: u32> TarFormatNumber<N, R>
impl<const N: usize, const R: u32> TarFormatNumber<N, R>
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, const R: u32> Clone for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> Clone for TarFormatNumber<N, R>
source§fn clone(&self) -> TarFormatNumber<N, R>
fn clone(&self) -> TarFormatNumber<N, R>
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, const R: u32> PartialEq for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> PartialEq for TarFormatNumber<N, R>
source§fn eq(&self, other: &TarFormatNumber<N, R>) -> bool
fn eq(&self, other: &TarFormatNumber<N, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<const N: usize, const R: u32> Copy for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> Eq for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> StructuralPartialEq for TarFormatNumber<N, R>
Auto Trait Implementations§
impl<const N: usize, const R: u32> Freeze for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> RefUnwindSafe for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> Send for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> Sync for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> Unpin for TarFormatNumber<N, R>
impl<const N: usize, const R: u32> UnwindSafe for TarFormatNumber<N, R>
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