pub enum ComputeCapability {
CudaComputeCapability(CudaComputeCapabilityProto),
RocmComputeCapability(RocmComputeCapabilityProto),
}Variants§
CudaComputeCapability(CudaComputeCapabilityProto)
RocmComputeCapability(RocmComputeCapabilityProto)
Implementations§
Source§impl ComputeCapability
impl ComputeCapability
Sourcepub fn merge(
field: &mut Option<ComputeCapability>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ComputeCapability>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for ComputeCapability
impl Clone for ComputeCapability
Source§fn clone(&self) -> ComputeCapability
fn clone(&self) -> ComputeCapability
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeCapability
impl Debug for ComputeCapability
Source§impl PartialEq for ComputeCapability
impl PartialEq for ComputeCapability
impl StructuralPartialEq for ComputeCapability
Auto Trait Implementations§
impl Freeze for ComputeCapability
impl RefUnwindSafe for ComputeCapability
impl Send for ComputeCapability
impl Sync for ComputeCapability
impl Unpin for ComputeCapability
impl UnwindSafe for ComputeCapability
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)