pub enum Variable {
Show 34 variants
Rank,
GlobalInputArray {
id: u16,
item: Item,
},
GlobalScalar {
id: u16,
elem: Elem,
},
GlobalOutputArray {
id: u16,
item: Item,
},
Local {
id: u16,
item: Item,
depth: u8,
},
Versioned {
id: u16,
item: Item,
depth: u8,
version: u16,
},
LocalBinding {
id: u16,
item: Item,
depth: u8,
},
ConstantScalar(ConstantScalarValue),
ConstantArray {
id: u16,
item: Item,
length: u32,
},
SharedMemory {
id: u16,
item: Item,
length: u32,
},
LocalArray {
id: u16,
item: Item,
depth: u8,
length: u32,
},
Matrix {
id: u16,
mat: Matrix,
depth: u8,
},
Slice {
id: u16,
item: Item,
depth: u8,
},
UnitPos,
UnitPosX,
UnitPosY,
UnitPosZ,
CubePos,
CubePosX,
CubePosY,
CubePosZ,
CubeDim,
CubeDimX,
CubeDimY,
CubeDimZ,
CubeCount,
CubeCountX,
CubeCountY,
CubeCountZ,
SubcubeDim,
AbsolutePos,
AbsolutePosX,
AbsolutePosY,
AbsolutePosZ,
}
Variants§
Rank
GlobalInputArray
GlobalScalar
GlobalOutputArray
Local
Versioned
LocalBinding
ConstantScalar(ConstantScalarValue)
ConstantArray
LocalArray
Matrix
Slice
UnitPos
UnitPosX
UnitPosY
UnitPosZ
CubePos
CubePosX
CubePosY
CubePosZ
CubeDim
CubeDimX
CubeDimY
CubeDimZ
CubeCount
CubeCountX
CubeCountY
CubeCountZ
SubcubeDim
AbsolutePos
AbsolutePosX
AbsolutePosY
AbsolutePosZ
Implementations§
Source§impl Variable
impl Variable
Sourcepub fn is_immutable(&self) -> bool
pub fn is_immutable(&self) -> bool
Whether a variable is always immutable. Used for optimizations to determine whether it’s safe to inline/merge
Sourcepub fn is_constant(&self, value: i64) -> bool
pub fn is_constant(&self, value: i64) -> bool
Determines if the value is a constant with the specified value (converted if necessary)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
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 From<ExpandElement> for Variable
impl From<ExpandElement> for Variable
Source§fn from(value: ExpandElement) -> Self
fn from(value: ExpandElement) -> Self
Converts to this type from the input type.
impl Copy for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)