#[repr(C)]pub struct DLPackVersion {
pub major: u32,
pub minor: u32,
}Expand description
DLPack protocol version, as carried by DLManagedTensorVersioned.
Corresponds to DLPackVersion in the DLPack specification.
Fields§
§major: u32Major version. Incremented on ABI-breaking changes.
minor: u32Minor version. Incremented on backward-compatible additions.
Trait Implementations§
Source§impl Clone for DLPackVersion
impl Clone for DLPackVersion
Source§fn clone(&self) -> DLPackVersion
fn clone(&self) -> DLPackVersion
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 moreSource§impl Debug for DLPackVersion
impl Debug for DLPackVersion
Source§impl PartialEq for DLPackVersion
impl PartialEq for DLPackVersion
Source§fn eq(&self, other: &DLPackVersion) -> bool
fn eq(&self, other: &DLPackVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DLPackVersion
impl Eq for DLPackVersion
impl StructuralPartialEq for DLPackVersion
Auto Trait Implementations§
impl Freeze for DLPackVersion
impl RefUnwindSafe for DLPackVersion
impl Send for DLPackVersion
impl Sync for DLPackVersion
impl Unpin for DLPackVersion
impl UnsafeUnpin for DLPackVersion
impl UnwindSafe for DLPackVersion
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