pub struct UppercaseHexadecimalFormatter { /* private fields */ }Expand description
This implementation of BufferFormatter trait formats provided bytes buffer in hexadecimal number system.
Implementations§
Source§impl UppercaseHexadecimalFormatter
impl UppercaseHexadecimalFormatter
Sourcepub fn new(provided_separator: Option<&str>) -> Self
pub fn new(provided_separator: Option<&str>) -> Self
Construct a new instance of UppercaseHexadecimalFormatter 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 UppercaseHexadecimalFormatter 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 UppercaseHexadecimalFormatter using default separator (:).
Trait Implementations§
Source§impl BufferFormatter for Box<UppercaseHexadecimalFormatter>
impl BufferFormatter for Box<UppercaseHexadecimalFormatter>
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 UppercaseHexadecimalFormatter
impl BufferFormatter for UppercaseHexadecimalFormatter
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 UppercaseHexadecimalFormatter
impl Clone for UppercaseHexadecimalFormatter
Source§fn clone(&self) -> UppercaseHexadecimalFormatter
fn clone(&self) -> UppercaseHexadecimalFormatter
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UppercaseHexadecimalFormatter
impl RefUnwindSafe for UppercaseHexadecimalFormatter
impl Send for UppercaseHexadecimalFormatter
impl Sync for UppercaseHexadecimalFormatter
impl Unpin for UppercaseHexadecimalFormatter
impl UnwindSafe for UppercaseHexadecimalFormatter
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