pub enum ScConst {
F64(f64),
I64(i64),
U64(u64),
F64Vec(Vec<f64>),
I64Vec(Vec<i64>),
}Expand description
Compile-time constant values embedded in the IR.
Variants§
F64(f64)
Floating-point scalar.
I64(i64)
Signed integer scalar.
U64(u64)
Unsigned integer scalar.
F64Vec(Vec<f64>)
Flat vector of f64 (for weight matrices).
I64Vec(Vec<i64>)
Flat vector of i64 (for fixed-point arrays).
Trait Implementations§
impl StructuralPartialEq for ScConst
Auto Trait Implementations§
impl Freeze for ScConst
impl RefUnwindSafe for ScConst
impl Send for ScConst
impl Sync for ScConst
impl Unpin for ScConst
impl UnsafeUnpin for ScConst
impl UnwindSafe for ScConst
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<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