Enum hotg_runecoral::ElementType
source · [−]#[non_exhaustive]
pub enum ElementType {
Show 13 variants
NoType,
Float32,
Int32,
UInt8,
Int64,
String,
Bool,
Int16,
Complex64,
Int8,
Float16,
Float64,
Complex128,
}
Expand description
Possible element types that can be used in a Tensor
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoType
Float32
Int32
UInt8
Int64
String
Bool
Int16
Complex64
Int8
Float16
Float64
Complex128
Trait Implementations
sourceimpl Clone for ElementType
impl Clone for ElementType
sourcefn clone(&self) -> ElementType
fn clone(&self) -> ElementType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ElementType
impl Debug for ElementType
sourceimpl Display for ElementType
impl Display for ElementType
sourceimpl From<ElementType> for RuneCoralElementType
impl From<ElementType> for RuneCoralElementType
sourcefn from(e: ElementType) -> RuneCoralElementType
fn from(e: ElementType) -> RuneCoralElementType
Performs the conversion.
sourceimpl From<u32> for ElementType
impl From<u32> for ElementType
sourcefn from(e: RuneCoralElementType) -> ElementType
fn from(e: RuneCoralElementType) -> ElementType
Performs the conversion.
sourceimpl PartialEq<ElementType> for ElementType
impl PartialEq<ElementType> for ElementType
impl Copy for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnwindSafe for ElementType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more