pub struct BufferExtent {
pub stride: u32,
pub elements: u32,
}Expand description
The caller’s stated view extent. The adapter validates the stride and addressable word count.
Fields§
§stride: u32Bytes in an element, nonzero and divisible by four.
elements: u32Elements in the view.
Trait Implementations§
Source§impl Clone for BufferExtent
impl Clone for BufferExtent
impl Copy for BufferExtent
Source§impl Debug for BufferExtent
impl Debug for BufferExtent
impl Eq for BufferExtent
Source§impl PartialEq for BufferExtent
impl PartialEq for BufferExtent
impl StructuralPartialEq for BufferExtent
Auto Trait Implementations§
impl Freeze for BufferExtent
impl RefUnwindSafe for BufferExtent
impl Send for BufferExtent
impl Sync for BufferExtent
impl Unpin for BufferExtent
impl UnsafeUnpin for BufferExtent
impl UnwindSafe for BufferExtent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.