[−][src]Enum weld::ast::ScalarKind
Scalar types in the Weld IR.
Variants
Methods
impl ScalarKind
[src]
pub fn is_float(self) -> bool
[src]
Returns whether this scalar is a floating-point type.
The current floating point kinds are F32
and F64
.
pub fn is_bool(self) -> bool
[src]
Returns whether this scalar is a boolean.
pub fn is_signed_integer(self) -> bool
[src]
Returns whether this scalar is a signed integer.
Booleans are not considered to be signed integers.
pub fn is_unsigned_integer(self) -> bool
[src]
Returns whether this scalar is an unsigned integer.
Booleans are not considered to be unsigned integers.
pub fn is_signed(self) -> bool
[src]
Returns whether this scalar is signed.
pub fn is_integer(self) -> bool
[src]
Returns whether this scalar is an integer.
Booleans are not considered to be integers.
pub fn is_numeric(self) -> bool
[src]
Returns whether the scalar is a numeric.
pub fn bits(self) -> u32
[src]
Return the length of this scalar type in bits.
pub fn is_upcast(self, target: ScalarKind) -> bool
[src]
Returns whether this type is smaller in bits than target
.
pub fn is_strict_upcast(self, target: ScalarKind) -> bool
[src]
Returns whether this type is strictly smaller in bits than target
.
Trait Implementations
impl Clone for ScalarKind
[src]
fn clone(&self) -> ScalarKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScalarKind
[src]
impl Debug for ScalarKind
[src]
impl Display for ScalarKind
[src]
impl Eq for ScalarKind
[src]
impl Hash for ScalarKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ScalarKind> for ScalarKind
[src]
fn eq(&self, other: &ScalarKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ScalarKind
[src]
impl StructuralPartialEq for ScalarKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScalarKind
impl Send for ScalarKind
impl Sync for ScalarKind
impl Unpin for ScalarKind
impl UnwindSafe for ScalarKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,