pub struct DecimalFormatter { /* private fields */ }
Expand description
This implementation of BufferFormatter
trait formats provided bytes buffer in decimal number system.
Implementations§
Source§impl DecimalFormatter
impl DecimalFormatter
Sourcepub fn new(provided_separator: Option<&str>) -> Self
pub fn new(provided_separator: Option<&str>) -> Self
Construct a new instance of DecimalFormatter
using provided borrowed separator. In case if provided
separator will be None
, than default separator (:
) will be used.
Sourcepub fn new_owned(provided_separator: Option<String>) -> Self
pub fn new_owned(provided_separator: Option<String>) -> Self
Construct a new instance of DecimalFormatter
using provided owned separator. In case if provided
separator will be None
, than default separator (:
) will be used.
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Construct a new instance of DecimalFormatter
using default separator (:
).
Trait Implementations§
Source§impl BufferFormatter for Box<DecimalFormatter>
impl BufferFormatter for Box<DecimalFormatter>
Source§fn get_separator(&self) -> &str
fn get_separator(&self) -> &str
This method returns a separator which will be inserted between bytes during
format_buffer
method call.
It should be implemented manually.Source§impl BufferFormatter for DecimalFormatter
impl BufferFormatter for DecimalFormatter
Source§fn get_separator(&self) -> &str
fn get_separator(&self) -> &str
This method returns a separator which will be inserted between bytes during
format_buffer
method call.
It should be implemented manually.Source§impl Clone for DecimalFormatter
impl Clone for DecimalFormatter
Source§fn clone(&self) -> DecimalFormatter
fn clone(&self) -> DecimalFormatter
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 Debug for DecimalFormatter
impl Debug for DecimalFormatter
Auto Trait Implementations§
impl Freeze for DecimalFormatter
impl RefUnwindSafe for DecimalFormatter
impl Send for DecimalFormatter
impl Sync for DecimalFormatter
impl Unpin for DecimalFormatter
impl UnwindSafe for DecimalFormatter
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