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