pub struct ValueMeta {
pub ty: Option<InferredType>,
pub value_text: Option<String>,
}Expand description
Initializer-derived metadata for a VAR or CONST declaration. Purely presentational — ink variables are dynamically retyped at runtime, so this never drives diagnostics.
Fields§
§ty: Option<InferredType>Type inferred from the initializer literal, if it is one.
value_text: Option<String>Display text of the initializer value (CONST only), e.g. "0.5".
Trait Implementations§
impl Eq for ValueMeta
impl StructuralPartialEq for ValueMeta
Auto Trait Implementations§
impl Freeze for ValueMeta
impl RefUnwindSafe for ValueMeta
impl Send for ValueMeta
impl Sync for ValueMeta
impl Unpin for ValueMeta
impl UnsafeUnpin for ValueMeta
impl UnwindSafe for ValueMeta
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