pub struct BinSettings {
pub num_repr: NumRepr,
pub size_repr: SizeRepr,
pub variant_repr: VariantRepr,
pub string_repr: StringRepr,
}Expand description
An aggregation of NumRepr, SizeRepr, VariantRepr, StringRepr
Fields§
§num_repr: NumRepr§size_repr: SizeRepr§variant_repr: VariantRepr§string_repr: StringReprImplementations§
Source§impl BinSettings
impl BinSettings
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Returns the default options containing the default for each representation.
See: NumRepr::new, SizeRepr::new, VariantRepr::new, StringRepr::new
Sourcepub const fn num_repr(self, num_repr: NumRepr) -> Self
pub const fn num_repr(self, num_repr: NumRepr) -> Self
Sets the number representation settings, then returns self.
Sourcepub const fn size_repr(self, size_repr: SizeRepr) -> Self
pub const fn size_repr(self, size_repr: SizeRepr) -> Self
Sets the size representation settings, then returns self.
Sourcepub const fn variant_repr(self, variant_repr: VariantRepr) -> Self
pub const fn variant_repr(self, variant_repr: VariantRepr) -> Self
Sets the variant representation settings, then returns self.
Sourcepub const fn string_repr(self, string_repr: StringRepr) -> Self
pub const fn string_repr(self, string_repr: StringRepr) -> Self
Sets the string representation settings, then returns self.
Trait Implementations§
Source§impl Clone for BinSettings
impl Clone for BinSettings
Source§fn clone(&self) -> BinSettings
fn clone(&self) -> BinSettings
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 BinSettings
impl Debug for BinSettings
Source§impl Default for BinSettings
impl Default for BinSettings
Source§impl Display for BinSettings
impl Display for BinSettings
Source§impl Hash for BinSettings
impl Hash for BinSettings
Source§impl PartialEq for BinSettings
impl PartialEq for BinSettings
impl Copy for BinSettings
impl Eq for BinSettings
impl StructuralPartialEq for BinSettings
Auto Trait Implementations§
impl Freeze for BinSettings
impl RefUnwindSafe for BinSettings
impl Send for BinSettings
impl Sync for BinSettings
impl Unpin for BinSettings
impl UnsafeUnpin for BinSettings
impl UnwindSafe for BinSettings
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