pub struct HexBytesOptions {
pub truncate_above: Option<usize>,
pub head: usize,
pub tail: usize,
}Expand description
Options for hex byte serialization.
Fields§
§truncate_above: Option<usize>Truncate when the byte length exceeds this threshold.
None means never truncate.
head: usizeNumber of bytes to keep from the start when truncating.
tail: usizeNumber of bytes to keep from the end when truncating.
Implementations§
Trait Implementations§
Source§impl Clone for HexBytesOptions
impl Clone for HexBytesOptions
Source§fn clone(&self) -> HexBytesOptions
fn clone(&self) -> HexBytesOptions
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 HexBytesOptions
impl Debug for HexBytesOptions
Source§impl Default for HexBytesOptions
impl Default for HexBytesOptions
Source§impl PartialEq for HexBytesOptions
impl PartialEq for HexBytesOptions
impl Copy for HexBytesOptions
impl Eq for HexBytesOptions
impl StructuralPartialEq for HexBytesOptions
Auto Trait Implementations§
impl Freeze for HexBytesOptions
impl RefUnwindSafe for HexBytesOptions
impl Send for HexBytesOptions
impl Sync for HexBytesOptions
impl Unpin for HexBytesOptions
impl UnsafeUnpin for HexBytesOptions
impl UnwindSafe for HexBytesOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.