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