#[repr(C)]pub struct DLPackExchangeAPIHeader {
pub version: DLPackVersion,
pub prev_api: *mut DLPackExchangeAPIHeader,
}Expand description
\brief DLPackExchangeAPI stable header. \sa DLPackExchangeAPI
Fields§
§version: DLPackVersion\brief The provided DLPack version the consumer must check major version compatibility before using this struct.
prev_api: *mut DLPackExchangeAPIHeader\brief Optional pointer to an older DLPackExchangeAPI in the chain.
It must be NULL if the framework does not support older versions. If the current major version is larger than the one supported by the consumer, the consumer may walk this to find an earlier supported version.
\sa DLPackExchangeAPI
Trait Implementations§
Source§impl Clone for DLPackExchangeAPIHeader
impl Clone for DLPackExchangeAPIHeader
Source§fn clone(&self) -> DLPackExchangeAPIHeader
fn clone(&self) -> DLPackExchangeAPIHeader
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 DLPackExchangeAPIHeader
Auto Trait Implementations§
impl !Send for DLPackExchangeAPIHeader
impl !Sync for DLPackExchangeAPIHeader
impl Freeze for DLPackExchangeAPIHeader
impl RefUnwindSafe for DLPackExchangeAPIHeader
impl Unpin for DLPackExchangeAPIHeader
impl UnsafeUnpin for DLPackExchangeAPIHeader
impl UnwindSafe for DLPackExchangeAPIHeader
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