pub struct BillsetIdList { /* private fields */ }Expand description
Represents a list of BillsetInfo.
Implementations§
Source§impl BillsetIdList
impl BillsetIdList
Sourcepub const fn new() -> BillsetIdList
pub const fn new() -> BillsetIdList
Creates a new BillsetIdList.
Sourcepub const fn max_size() -> usize
pub const fn max_size() -> usize
Gets the maximum number of BillsetInfo items.
Sourcepub const fn size(&self) -> usize
pub const fn size(&self) -> usize
Gets the size of the BillsetIdList.
Sourcepub fn set_size(&mut self, val: u32)
pub fn set_size(&mut self, val: u32)
Sets the size of the BillsetIdList.
No-op if val is larger than BILLSET_ID_LIST_LEN.
Sourcepub fn with_size(self, val: u32) -> BillsetIdList
pub fn with_size(self, val: u32) -> BillsetIdList
Builder function that sets the size of the BillsetIdList.
No-op if val is larger than BILLSET_ID_LIST_LEN.
Sourcepub fn items(&self) -> &[BillsetInfo]
pub fn items(&self) -> &[BillsetInfo]
Gets a reference to the list of set BillsetInfo items.
Sourcepub fn set_items(&mut self, val: &[BillsetInfo])
pub fn set_items(&mut self, val: &[BillsetInfo])
Sets the list of BillsetInfo items.
Sourcepub fn with_items(self, val: &[BillsetInfo]) -> BillsetIdList
pub fn with_items(self, val: &[BillsetInfo]) -> BillsetIdList
Builder function that sets the list of BillsetInfo items.
Sourcepub fn push_item(&mut self, val: BillsetInfo)
pub fn push_item(&mut self, val: BillsetInfo)
Pushes a BillsetInfo onto the end of the list.
No-op if the list is at capacity.
Trait Implementations§
Source§impl Clone for BillsetIdList
impl Clone for BillsetIdList
Source§fn clone(&self) -> BillsetIdList
fn clone(&self) -> BillsetIdList
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 BillsetIdList
impl Debug for BillsetIdList
Source§impl Default for BillsetIdList
impl Default for BillsetIdList
Source§fn default() -> BillsetIdList
fn default() -> BillsetIdList
Returns the “default value” for a type. Read more
Source§impl Display for BillsetIdList
impl Display for BillsetIdList
Source§impl From<&BillsetIdList> for XfsArray
impl From<&BillsetIdList> for XfsArray
Source§fn from(val: &BillsetIdList) -> XfsArray
fn from(val: &BillsetIdList) -> XfsArray
Converts to this type from the input type.
Source§impl From<&BillsetIdList> for XfsMember
impl From<&BillsetIdList> for XfsMember
Source§fn from(val: &BillsetIdList) -> XfsMember
fn from(val: &BillsetIdList) -> XfsMember
Converts to this type from the input type.
Source§impl From<&BillsetIdList> for XfsValue
impl From<&BillsetIdList> for XfsValue
Source§fn from(val: &BillsetIdList) -> XfsValue
fn from(val: &BillsetIdList) -> XfsValue
Converts to this type from the input type.
Source§impl From<BillsetIdList> for XfsArray
impl From<BillsetIdList> for XfsArray
Source§fn from(val: BillsetIdList) -> XfsArray
fn from(val: BillsetIdList) -> XfsArray
Converts to this type from the input type.
Source§impl From<BillsetIdList> for XfsMember
impl From<BillsetIdList> for XfsMember
Source§fn from(val: BillsetIdList) -> XfsMember
fn from(val: BillsetIdList) -> XfsMember
Converts to this type from the input type.
Source§impl From<BillsetIdList> for XfsValue
impl From<BillsetIdList> for XfsValue
Source§fn from(val: BillsetIdList) -> XfsValue
fn from(val: BillsetIdList) -> XfsValue
Converts to this type from the input type.
Source§impl PartialEq for BillsetIdList
impl PartialEq for BillsetIdList
Source§impl TryFrom<&XfsArray> for BillsetIdList
impl TryFrom<&XfsArray> for BillsetIdList
Source§impl TryFrom<&XfsMember> for BillsetIdList
impl TryFrom<&XfsMember> for BillsetIdList
Source§impl TryFrom<&XfsMethodResponse> for BillsetIdList
impl TryFrom<&XfsMethodResponse> for BillsetIdList
Source§impl TryFrom<&XfsValue> for BillsetIdList
impl TryFrom<&XfsValue> for BillsetIdList
Source§impl TryFrom<XfsArray> for BillsetIdList
impl TryFrom<XfsArray> for BillsetIdList
Source§impl TryFrom<XfsMember> for BillsetIdList
impl TryFrom<XfsMember> for BillsetIdList
Source§impl TryFrom<XfsMethodResponse> for BillsetIdList
impl TryFrom<XfsMethodResponse> for BillsetIdList
Source§impl TryFrom<XfsValue> for BillsetIdList
impl TryFrom<XfsValue> for BillsetIdList
impl Eq for BillsetIdList
impl StructuralPartialEq for BillsetIdList
Auto Trait Implementations§
impl Freeze for BillsetIdList
impl RefUnwindSafe for BillsetIdList
impl Send for BillsetIdList
impl Sync for BillsetIdList
impl Unpin for BillsetIdList
impl UnwindSafe for BillsetIdList
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