pub struct IncompleteArrayField<T>(/* private fields */);Expand description
This is an adaptation of the __IncompleteArrayField type that rust-bindgen generates.
Implementations§
Source§impl<T> IncompleteArrayField<T>
impl<T> IncompleteArrayField<T>
Sourcepub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_mut_ptr(&mut self) -> *mut T
Returns a mutable pointer to the beginning of this field.
Sourcepub unsafe fn as_slice(&self, len: usize) -> &[T]
pub unsafe fn as_slice(&self, len: usize) -> &[T]
Returns a slice representing the data in this field.
§Safety
The caller must have out-of-band knowledge that the field is at least
len entries long.
Sourcepub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T]
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T]
Returns a mutable slice representing the data in this field.
§Safety
The caller must have out-of-band knowledge that the field is at least
len entries long.
Trait Implementations§
Source§impl<T> Debug for IncompleteArrayField<T>
impl<T> Debug for IncompleteArrayField<T>
Source§impl<T: Default> Default for IncompleteArrayField<T>
impl<T: Default> Default for IncompleteArrayField<T>
Source§fn default() -> IncompleteArrayField<T>
fn default() -> IncompleteArrayField<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for IncompleteArrayField<T>where
T: Freeze,
impl<T> RefUnwindSafe for IncompleteArrayField<T>where
T: RefUnwindSafe,
impl<T> Send for IncompleteArrayField<T>where
T: Send,
impl<T> Sync for IncompleteArrayField<T>where
T: Sync,
impl<T> Unpin for IncompleteArrayField<T>where
T: Unpin,
impl<T> UnwindSafe for IncompleteArrayField<T>where
T: UnwindSafe,
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