pub struct HexOptions {
pub prefix: bool,
pub uppercase: bool,
}Expand description
Options for hex export.
Fields§
§prefix: boolInclude 0x prefix
uppercase: boolUse uppercase hex
Implementations§
Source§impl HexOptions
impl HexOptions
Sourcepub fn with_prefix(self, prefix: bool) -> Self
pub fn with_prefix(self, prefix: bool) -> Self
Set prefix option.
Sourcepub fn with_uppercase(self, uppercase: bool) -> Self
pub fn with_uppercase(self, uppercase: bool) -> Self
Set uppercase option.
Trait Implementations§
Source§impl Clone for HexOptions
impl Clone for HexOptions
Source§fn clone(&self) -> HexOptions
fn clone(&self) -> HexOptions
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 HexOptions
impl Debug for HexOptions
Source§impl Default for HexOptions
impl Default for HexOptions
Source§fn default() -> HexOptions
fn default() -> HexOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HexOptions
impl RefUnwindSafe for HexOptions
impl Send for HexOptions
impl Sync for HexOptions
impl Unpin for HexOptions
impl UnwindSafe for HexOptions
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