pub struct Constants {
pub values: Vec<Value>,
}
Fields§
§values: Vec<Value>
Implementations§
Source§impl Constants
impl Constants
pub fn lookup_constant_value(&self, id: ConstantId) -> &Value
pub fn set(&mut self, id: ConstantId, value: Value)
pub fn new() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Constants
impl !RefUnwindSafe for Constants
impl !Send for Constants
impl !Sync for Constants
impl Unpin for Constants
impl !UnwindSafe for Constants
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