pub struct AttrModelCode { /* private fields */ }Expand description
VI_ATTR_MODEL_CODE specifies the model code for the device. For VXI resources, this refers to the VXI Model Code. For PXI INSTR resources, if the subsystem PCI Vendor ID is nonzero, this refers to the subsystem Device ID. Otherwise, this refers to the Device ID. For USB resources, this refers to the Product ID (PID).
Implementations§
Source§impl AttrModelCode
impl AttrModelCode
pub fn into_inner(self) -> ViUInt16
Source§impl AttrModelCode
impl AttrModelCode
pub unsafe fn new_unchecked(value: ViUInt16) -> Self
Trait Implementations§
Source§impl Clone for AttrModelCode
impl Clone for AttrModelCode
Source§fn clone(&self) -> AttrModelCode
fn clone(&self) -> AttrModelCode
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 AttrModelCode
impl Debug for AttrModelCode
Source§impl From<AttrModelCode> for Attribute
impl From<AttrModelCode> for Attribute
Source§fn from(s: AttrModelCode) -> Self
fn from(s: AttrModelCode) -> Self
Converts to this type from the input type.
Source§impl Hash for AttrModelCode
impl Hash for AttrModelCode
Source§impl Ord for AttrModelCode
impl Ord for AttrModelCode
Source§fn cmp(&self, other: &AttrModelCode) -> Ordering
fn cmp(&self, other: &AttrModelCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttrModelCode
impl PartialEq for AttrModelCode
Source§impl PartialOrd for AttrModelCode
impl PartialOrd for AttrModelCode
Source§impl SpecAttr for AttrModelCode
impl SpecAttr for AttrModelCode
impl Eq for AttrModelCode
impl StructuralPartialEq for AttrModelCode
Auto Trait Implementations§
impl Freeze for AttrModelCode
impl RefUnwindSafe for AttrModelCode
impl Send for AttrModelCode
impl Sync for AttrModelCode
impl Unpin for AttrModelCode
impl UnwindSafe for AttrModelCode
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