pub struct LowercaseHexadecimalFormatter { /* private fields */ }Expand description
This implementation of BufferFormatter trait formats provided bytes buffer in hexadecimal 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, then default separator (:) will be used.
Sourcepub fn new_static(provided_separator: Option<&'static str>) -> Self
pub fn new_static(provided_separator: Option<&'static str>) -> Self
Construct a new instance of
LowercaseHexadecimalFormatter
using provided static borrowed separator. In case if provided
separator will be None, then default separator (:) will be used. This method avoids allocation for
static string separators.
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, then 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
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
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<&str> for LowercaseHexadecimalFormatter
impl From<&str> for LowercaseHexadecimalFormatter
Source§impl From<String> for LowercaseHexadecimalFormatter
impl From<String> for LowercaseHexadecimalFormatter
Source§impl Hash for LowercaseHexadecimalFormatter
impl Hash for LowercaseHexadecimalFormatter
Source§impl PartialEq for LowercaseHexadecimalFormatter
impl PartialEq for LowercaseHexadecimalFormatter
Source§fn eq(&self, other: &LowercaseHexadecimalFormatter) -> bool
fn eq(&self, other: &LowercaseHexadecimalFormatter) -> bool
self and other values to be equal, and is used by ==.