#[repr(C)]pub struct Denomination { /* private fields */ }
Expand description
This structure handles a list of DenominationItems.
Implementations§
Source§impl Denomination
impl Denomination
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new Denomination.
Sourcepub const fn size(&self) -> u32
pub const fn size(&self) -> u32
Gets the size of the Denomination.
Sourcepub fn set_size(&mut self, size: u32)
pub fn set_size(&mut self, size: u32)
Sets the size of the Denomination.
Sourcepub fn with_size(self, size: u32) -> Self
pub fn with_size(self, size: u32) -> Self
Builder function that sets the size of the Denomination.
Sourcepub const fn amount(&self) -> u32
pub const fn amount(&self) -> u32
Gets the amount of the Denomination.
Sourcepub fn set_amount(&mut self, amount: u32)
pub fn set_amount(&mut self, amount: u32)
Sets the amount of the Denomination.
Sourcepub fn with_amount(self, amount: u32) -> Self
pub fn with_amount(self, amount: u32) -> Self
Builder function that sets the amount of the Denomination.
Sourcepub const fn cashbox(&self) -> u32
pub const fn cashbox(&self) -> u32
Gets the cashbox of the Denomination.
Sourcepub fn set_cashbox(&mut self, cashbox: u32)
pub fn set_cashbox(&mut self, cashbox: u32)
Sets the cashbox of the Denomination.
Sourcepub fn with_cashbox(self, cashbox: u32) -> Self
pub fn with_cashbox(self, cashbox: u32) -> Self
Builder function that sets the cashbox of the Denomination.
Sourcepub fn items(&self) -> &[DenominationItem]
pub fn items(&self) -> &[DenominationItem]
Gets the list of DenominationItems of the Denomination.
Sourcepub fn items_mut(&mut self) -> &mut [DenominationItem]
pub fn items_mut(&mut self) -> &mut [DenominationItem]
Gets the mutable list of DenominationItems of the Denomination.
Sourcepub fn set_items(&mut self, items: &[DenominationItem])
pub fn set_items(&mut self, items: &[DenominationItem])
Sets the list of DenominationItems of the Denomination.
Sourcepub fn with_items(self, items: &[DenominationItem]) -> Self
pub fn with_items(self, items: &[DenominationItem]) -> Self
Builder function that sets the list of DenominationItems of the Denomination.
Trait Implementations§
Source§impl Clone for Denomination
impl Clone for Denomination
Source§fn clone(&self) -> Denomination
fn clone(&self) -> Denomination
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 Denomination
impl Debug for Denomination
Source§impl Default for Denomination
impl Default for Denomination
Source§fn default() -> Denomination
fn default() -> Denomination
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Denomination
impl<'de> Deserialize<'de> for Denomination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Denomination
impl Display for Denomination
Source§impl From<&Denomination> for XfsMember
impl From<&Denomination> for XfsMember
Source§fn from(val: &Denomination) -> Self
fn from(val: &Denomination) -> Self
Converts to this type from the input type.
Source§impl From<&Denomination> for XfsStruct
impl From<&Denomination> for XfsStruct
Source§fn from(val: &Denomination) -> Self
fn from(val: &Denomination) -> Self
Converts to this type from the input type.
Source§impl From<&Denomination> for XfsValue
impl From<&Denomination> for XfsValue
Source§fn from(val: &Denomination) -> Self
fn from(val: &Denomination) -> Self
Converts to this type from the input type.
Source§impl From<Denomination> for XfsMember
impl From<Denomination> for XfsMember
Source§fn from(val: Denomination) -> Self
fn from(val: Denomination) -> Self
Converts to this type from the input type.
Source§impl From<Denomination> for XfsStruct
impl From<Denomination> for XfsStruct
Source§fn from(val: Denomination) -> Self
fn from(val: Denomination) -> Self
Converts to this type from the input type.
Source§impl From<Denomination> for XfsValue
impl From<Denomination> for XfsValue
Source§fn from(val: Denomination) -> Self
fn from(val: Denomination) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Denomination
impl PartialEq for Denomination
Source§impl Serialize for Denomination
impl Serialize for Denomination
Source§impl TryFrom<&XfsMember> for Denomination
impl TryFrom<&XfsMember> for Denomination
Source§impl TryFrom<&XfsStruct> for Denomination
impl TryFrom<&XfsStruct> for Denomination
Source§impl TryFrom<&XfsValue> for Denomination
impl TryFrom<&XfsValue> for Denomination
Source§impl TryFrom<XfsMember> for Denomination
impl TryFrom<XfsMember> for Denomination
Source§impl TryFrom<XfsStruct> for Denomination
impl TryFrom<XfsStruct> for Denomination
Source§impl TryFrom<XfsValue> for Denomination
impl TryFrom<XfsValue> for Denomination
impl Copy for Denomination
impl StructuralPartialEq for Denomination
Auto Trait Implementations§
impl Freeze for Denomination
impl RefUnwindSafe for Denomination
impl Send for Denomination
impl Sync for Denomination
impl Unpin for Denomination
impl UnwindSafe for Denomination
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