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