pub struct ConstParam {
pub name: &'static str,
pub value: u64,
pub kind: ConstParamKind,
}Expand description
Value of a reflected const generic parameter.
Fields§
§name: &'static strThe name of the const parameter (e.g., N).
value: u64Erased numeric value of the const parameter.
Signed values are stored using Rust’s cast semantics
(two’s-complement representation in u64).
kind: ConstParamKindPrimitive kind of the const parameter.
Trait Implementations§
Source§impl Clone for ConstParam
impl Clone for ConstParam
Source§fn clone(&self) -> ConstParam
fn clone(&self) -> ConstParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstParam
impl Debug for ConstParam
Source§impl Hash for ConstParam
impl Hash for ConstParam
Source§impl PartialEq for ConstParam
impl PartialEq for ConstParam
impl Copy for ConstParam
impl Eq for ConstParam
impl StructuralPartialEq for ConstParam
Auto Trait Implementations§
impl Freeze for ConstParam
impl RefUnwindSafe for ConstParam
impl Send for ConstParam
impl Sync for ConstParam
impl Unpin for ConstParam
impl UnsafeUnpin for ConstParam
impl UnwindSafe for ConstParam
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