#[repr(transparent)]pub struct ScalarType(pub i8);
Expand description
Binding for c10::ScalarType
.
Tuple Fields§
§0: i8
Implementations§
Source§impl ScalarType
impl ScalarType
pub const Byte: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Char: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Short: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Long: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Half: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Double: ScalarType
Source§impl ScalarType
impl ScalarType
pub const ComplexHalf: ScalarType
Source§impl ScalarType
impl ScalarType
pub const ComplexFloat: ScalarType
Source§impl ScalarType
impl ScalarType
pub const ComplexDouble: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bool: ScalarType
Source§impl ScalarType
impl ScalarType
pub const QInt8: ScalarType
Source§impl ScalarType
impl ScalarType
pub const QUInt8: ScalarType
Source§impl ScalarType
impl ScalarType
pub const QInt32: ScalarType
Source§impl ScalarType
impl ScalarType
pub const BFloat16: ScalarType
Source§impl ScalarType
impl ScalarType
pub const QUInt4x2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const QUInt2x4: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bits1x8: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bits2x4: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bits4x2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bits8: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Bits16: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float8_e5m2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float8_e4m3fn: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float8_e5m2fnuz: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float8_e4m3fnuz: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt16: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt32: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt64: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt1: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt3: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt4: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt5: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt6: ScalarType
Source§impl ScalarType
impl ScalarType
pub const UInt7: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int1: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int3: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int4: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int5: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int6: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Int7: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float8_e8m0fnu: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Float4_e2m1fn_x2: ScalarType
Source§impl ScalarType
impl ScalarType
pub const Undefined: ScalarType
Source§impl ScalarType
impl ScalarType
pub const NumOptions: ScalarType
Trait Implementations§
Source§impl Clone for ScalarType
impl Clone for ScalarType
Source§fn clone(&self) -> ScalarType
fn clone(&self) -> ScalarType
Returns a duplicate of the value. Read more
1.0.0 · 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 ScalarType
impl Debug for ScalarType
Source§impl ExternType for ScalarType
impl ExternType for ScalarType
Source§impl From<ScalarType> for RValue
impl From<ScalarType> for RValue
Source§fn from(value: ScalarType) -> Self
fn from(value: ScalarType) -> Self
Converts to this type from the input type.
Source§impl FromPyObject<'_> for ScalarType
impl FromPyObject<'_> for ScalarType
Source§fn extract_bound(obj: &Bound<'_, PyAny>) -> PyResult<Self>
fn extract_bound(obj: &Bound<'_, PyAny>) -> PyResult<Self>
Source§impl Hash for ScalarType
impl Hash for ScalarType
Source§impl<'py> IntoPyObject<'py> for ScalarType
impl<'py> IntoPyObject<'py> for ScalarType
Source§type Output = Bound<'py, <ScalarType as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <ScalarType as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Performs the conversion.
Source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime RValue> for &'__deriveMoreLifetime ScalarType
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime RValue> for &'__deriveMoreLifetime ScalarType
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut RValue> for &'__deriveMoreLifetime mut ScalarType
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut RValue> for &'__deriveMoreLifetime mut ScalarType
Source§impl TryFrom<RValue> for ScalarType
impl TryFrom<RValue> for ScalarType
impl Copy for ScalarType
impl Eq for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl Freeze for ScalarType
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnwindSafe for ScalarType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self
into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
Converts
self
into an owned Python object, dropping type information and unbinding it
from the 'py
lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
Converts
self
into a Python object. Read more