pub enum Elem {
Float(FloatKind),
Int(IntKind),
UInt(UIntKind),
AtomicFloat(FloatKind),
AtomicInt(IntKind),
AtomicUInt(UIntKind),
Bool,
}
Variants§
Float(FloatKind)
Int(IntKind)
UInt(UIntKind)
AtomicFloat(FloatKind)
AtomicInt(IntKind)
AtomicUInt(UIntKind)
Bool
Implementations§
Source§impl Elem
impl Elem
Sourcepub fn constant_from_f64(&self, val: f64) -> Variable
pub fn constant_from_f64(&self, val: f64) -> Variable
Create a constant scalar from a float.
The output will have the same type as the element.
Sourcepub fn constant_from_i64(&self, val: i64) -> Variable
pub fn constant_from_i64(&self, val: i64) -> Variable
Create a constant scalar from a signed integer.
The output will have the same type as the element.
Sourcepub fn constant_from_u64(&self, val: u64) -> Variable
pub fn constant_from_u64(&self, val: u64) -> Variable
Create a constant scalar from a unsigned integer.
The output will have the same type as the element.
Sourcepub fn constant_from_bool(&self, val: bool) -> Variable
pub fn constant_from_bool(&self, val: bool) -> Variable
Create a constant scalar from a boolean.
The output will have the same type as the element.
Sourcepub fn from_constant(&self, constant: Variable) -> Variable
pub fn from_constant(&self, constant: Variable) -> Variable
Ensure that the variable provided, when a constant, is the same type as elem.
pub const fn min_line_size(&self) -> u8
pub fn is_atomic(&self) -> bool
pub fn is_int(&self) -> bool
pub fn max_variable(&self) -> Variable
pub fn min_variable(&self) -> Variable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Elem
impl<'de> Deserialize<'de> for Elem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Elem
impl Ord for Elem
Source§impl PartialOrd for Elem
impl PartialOrd for Elem
impl Copy for Elem
impl Eq for Elem
impl StructuralPartialEq for Elem
Auto Trait Implementations§
impl Freeze for Elem
impl RefUnwindSafe for Elem
impl Send for Elem
impl Sync for Elem
impl Unpin for Elem
impl UnwindSafe for Elem
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.