pub struct SyscallSymbol { /* private fields */ }Expand description
A syscall symbol with a maximum length of MAX_SYSCALL_SYMBOL_LEN bytes.
Implementations§
Source§impl SyscallSymbol
impl SyscallSymbol
Sourcepub fn new(bytes: &[u8]) -> Option<Self>
pub fn new(bytes: &[u8]) -> Option<Self>
Build a SyscallSymbol from a byte slice.
Returns None if bytes exceeds MAX_SYSCALL_SYMBOL_LEN.
Trait Implementations§
Source§impl AsRef<[u8]> for SyscallSymbol
impl AsRef<[u8]> for SyscallSymbol
Source§impl Clone for SyscallSymbol
impl Clone for SyscallSymbol
Source§fn clone(&self) -> SyscallSymbol
fn clone(&self) -> SyscallSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SyscallSymbol
Source§impl Debug for SyscallSymbol
impl Debug for SyscallSymbol
Source§impl Default for SyscallSymbol
impl Default for SyscallSymbol
Source§fn default() -> SyscallSymbol
fn default() -> SyscallSymbol
Returns the “default value” for a type. Read more
impl Eq for SyscallSymbol
Source§impl PartialEq for SyscallSymbol
impl PartialEq for SyscallSymbol
Source§fn eq(&self, other: &SyscallSymbol) -> bool
fn eq(&self, other: &SyscallSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyscallSymbol
Auto Trait Implementations§
impl Freeze for SyscallSymbol
impl RefUnwindSafe for SyscallSymbol
impl Send for SyscallSymbol
impl Sync for SyscallSymbol
impl Unpin for SyscallSymbol
impl UnsafeUnpin for SyscallSymbol
impl UnwindSafe for SyscallSymbol
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
Source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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