pub struct OctalFormatter { /* private fields */ }Expand description
This implementation of BufferFormatter trait formats provided bytes buffer in octal number system.
Implementations§
Source§impl OctalFormatter
impl OctalFormatter
Sourcepub fn new(provided_separator: Option<&str>) -> Self
pub fn new(provided_separator: Option<&str>) -> Self
Construct a new instance of
OctalFormatter
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
OctalFormatter
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
OctalFormatter
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
OctalFormatter
using default separator (:).
Trait Implementations§
Source§impl BufferFormatter for Box<OctalFormatter>
impl BufferFormatter for Box<OctalFormatter>
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 OctalFormatter
impl BufferFormatter for OctalFormatter
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 OctalFormatter
impl Clone for OctalFormatter
Source§fn clone(&self) -> OctalFormatter
fn clone(&self) -> OctalFormatter
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 moreSource§impl Debug for OctalFormatter
impl Debug for OctalFormatter
Source§impl Default for OctalFormatter
impl Default for OctalFormatter
Source§impl Display for OctalFormatter
impl Display for OctalFormatter
Source§impl From<&str> for OctalFormatter
impl From<&str> for OctalFormatter
Source§impl From<String> for OctalFormatter
impl From<String> for OctalFormatter
Source§impl Hash for OctalFormatter
impl Hash for OctalFormatter
Source§impl PartialEq for OctalFormatter
impl PartialEq for OctalFormatter
impl Eq for OctalFormatter
impl StructuralPartialEq for OctalFormatter
Auto Trait Implementations§
impl Freeze for OctalFormatter
impl RefUnwindSafe for OctalFormatter
impl Send for OctalFormatter
impl Sync for OctalFormatter
impl Unpin for OctalFormatter
impl UnsafeUnpin for OctalFormatter
impl UnwindSafe for OctalFormatter
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