pub struct EnableDenomination(/* private fields */);Expand description
Represents whether to enable a denomination specified by a DenominationInfo.
Implementations§
Source§impl EnableDenomination
impl EnableDenomination
Sourcepub const fn new() -> EnableDenomination
pub const fn new() -> EnableDenomination
Creates a new EnableDenomination.
Sourcepub const fn create(c: bool) -> EnableDenomination
pub const fn create(c: bool) -> EnableDenomination
Creates a new EnableDenomination from the provided parameter.
Sourcepub const fn inner(&self) -> bool
pub const fn inner(&self) -> bool
Gets the inner representation of the EnableDenomination.
Sourcepub fn set_inner(&mut self, v: bool)
pub fn set_inner(&mut self, v: bool)
Sets the inner representation of the EnableDenomination.
Sourcepub fn into_inner(self) -> bool
pub fn into_inner(self) -> bool
Converts into the inner representation of the EnableDenomination.
Trait Implementations§
Source§impl Clone for EnableDenomination
impl Clone for EnableDenomination
Source§fn clone(&self) -> EnableDenomination
fn clone(&self) -> EnableDenomination
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 EnableDenomination
impl Debug for EnableDenomination
Source§impl Default for EnableDenomination
impl Default for EnableDenomination
Source§fn default() -> EnableDenomination
fn default() -> EnableDenomination
Returns the “default value” for a type. Read more
Source§impl Display for EnableDenomination
impl Display for EnableDenomination
Source§impl From<&EnableDenomination> for XfsMember
impl From<&EnableDenomination> for XfsMember
Source§fn from(val: &EnableDenomination) -> XfsMember
fn from(val: &EnableDenomination) -> XfsMember
Converts to this type from the input type.
Source§impl From<&EnableDenomination> for XfsValue
impl From<&EnableDenomination> for XfsValue
Source§fn from(val: &EnableDenomination) -> XfsValue
fn from(val: &EnableDenomination) -> XfsValue
Converts to this type from the input type.
Source§impl From<&bool> for EnableDenomination
impl From<&bool> for EnableDenomination
Source§fn from(val: &bool) -> EnableDenomination
fn from(val: &bool) -> EnableDenomination
Converts to this type from the input type.
Source§impl From<&u8> for EnableDenomination
impl From<&u8> for EnableDenomination
Source§fn from(val: &u8) -> EnableDenomination
fn from(val: &u8) -> EnableDenomination
Converts to this type from the input type.
Source§impl From<EnableDenomination> for XfsMember
impl From<EnableDenomination> for XfsMember
Source§fn from(val: EnableDenomination) -> XfsMember
fn from(val: EnableDenomination) -> XfsMember
Converts to this type from the input type.
Source§impl From<EnableDenomination> for XfsValue
impl From<EnableDenomination> for XfsValue
Source§fn from(val: EnableDenomination) -> XfsValue
fn from(val: EnableDenomination) -> XfsValue
Converts to this type from the input type.
Source§impl From<bool> for EnableDenomination
impl From<bool> for EnableDenomination
Source§fn from(val: bool) -> EnableDenomination
fn from(val: bool) -> EnableDenomination
Converts to this type from the input type.
Source§impl From<u8> for EnableDenomination
impl From<u8> for EnableDenomination
Source§fn from(val: u8) -> EnableDenomination
fn from(val: u8) -> EnableDenomination
Converts to this type from the input type.
Source§impl PartialEq for EnableDenomination
impl PartialEq for EnableDenomination
Source§impl TryFrom<&XfsMember> for EnableDenomination
impl TryFrom<&XfsMember> for EnableDenomination
Source§impl TryFrom<&XfsValue> for EnableDenomination
impl TryFrom<&XfsValue> for EnableDenomination
Source§impl TryFrom<XfsMember> for EnableDenomination
impl TryFrom<XfsMember> for EnableDenomination
Source§impl TryFrom<XfsValue> for EnableDenomination
impl TryFrom<XfsValue> for EnableDenomination
impl Copy for EnableDenomination
impl Eq for EnableDenomination
impl StructuralPartialEq for EnableDenomination
Auto Trait Implementations§
impl Freeze for EnableDenomination
impl RefUnwindSafe for EnableDenomination
impl Send for EnableDenomination
impl Sync for EnableDenomination
impl Unpin for EnableDenomination
impl UnwindSafe for EnableDenomination
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