pub enum ConstArg {
Value(u32),
Param(u32),
ExprOffset(u32),
}Expand description
Const generic / array length representation encoded inside a single u32 word.
Variants§
Value(u32)
Inline non-negative integer constant (0..=0x1fff_ffff), e.g. [u8; 32].
Param(u32)
Generic const parameter index (const N: usize -> Param(idx)).
ExprOffset(u32)
Interned string_pool offset for general constant expressions/literals.
Trait Implementations§
impl Copy for ConstArg
impl Eq for ConstArg
impl StructuralPartialEq for ConstArg
Auto Trait Implementations§
impl Forget for ConstArg
impl Freeze for ConstArg
impl Move for ConstArg
impl RefUnwindSafe for ConstArg
impl Send for ConstArg
impl Sync for ConstArg
impl Unpin for ConstArg
impl UnsafeUnpin for ConstArg
impl UnwindSafe for ConstArg
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