pub struct Context {
pub format: Format,
pub sep: bool,
pub dp: Option<u8>,
}Fields§
§format: Format§sep: bool§dp: Option<u8>Implementations§
Source§impl Context
impl Context
pub fn new() -> Self
pub fn with_hex(self, hex: bool) -> Self
pub fn with_format(self, format: Format) -> Self
pub fn set_dec(&mut self)
pub fn set_hex(&mut self)
pub fn with_sep(self, sep: bool) -> Self
pub fn swap_sep(&mut self, sep: bool) -> bool
pub fn set_sep(&mut self)
pub fn no_sep(&mut self)
pub fn with_dp(self, dp: Option<u8>) -> Self
pub fn set_dp(&mut self, dp: ValueRef)
pub fn set_dp_u8(&mut self, dp: u8)
pub fn no_dp(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more