#[repr(C, packed(4))]pub struct TcPeditSel {
pub index: u32,
pub capab: u32,
pub action: i32,
pub refcnt: i32,
pub bindcnt: i32,
pub nkeys: u8,
pub flags: u8,
pub _pad_22: [u8; 2],
pub keys: TcPeditKey,
}Available on crate feature
tc only.Fields§
§index: u32§capab: u32§action: i32§refcnt: i32§bindcnt: i32§nkeys: u8§flags: u8§_pad_22: [u8; 2]§keys: TcPeditKeyImplementations§
Source§impl TcPeditSel
impl TcPeditSel
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 48]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 48]
pub fn from_array(buf: &[u8; 48]) -> &Self
pub fn into_array(self) -> [u8; 48]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for TcPeditSel
impl Clone for TcPeditSel
Source§impl Debug for TcPeditSel
impl Debug for TcPeditSel
Auto Trait Implementations§
impl Freeze for TcPeditSel
impl RefUnwindSafe for TcPeditSel
impl Send for TcPeditSel
impl Sync for TcPeditSel
impl Unpin for TcPeditSel
impl UnsafeUnpin for TcPeditSel
impl UnwindSafe for TcPeditSel
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