Struct num_runtime_fmt::Dynamic [−][src]
Container for setting certain parameters dynamically.
Fields
width: Option<usize>
precision: Option<usize>
spacing: Option<usize>
Implementations
impl Dynamic
[src]
pub fn new<W, P, S>(width: W, precision: P, spacing: S) -> Dynamic where
W: Into<Option<usize>>,
P: Into<Option<usize>>,
S: Into<Option<usize>>,
[src]
W: Into<Option<usize>>,
P: Into<Option<usize>>,
S: Into<Option<usize>>,
Construct a Dynamic
instance, specifying all parameters.
The parameters accept anything which can become an Option<usize>
, so
it’s possible to use both bare numbers and None
:
Dynamic::new(5, 3, None);
pub fn width(width: usize) -> Dynamic
[src]
Construct a Dynamic
instance specifying only width
.
pub fn precision(precision: usize) -> Dynamic
[src]
Construct a Dynamic
instance specifying only precision
.
pub fn spacing(spacing: usize) -> Dynamic
[src]
Construct a Dynamic
instance specifying only spacing
.
Trait Implementations
impl Clone for Dynamic
[src]
impl Copy for Dynamic
[src]
impl Debug for Dynamic
[src]
impl Default for Dynamic
[src]
impl Eq for Dynamic
[src]
impl PartialEq<Dynamic> for Dynamic
[src]
impl StructuralEq for Dynamic
[src]
impl StructuralPartialEq for Dynamic
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnwindSafe for Dynamic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,