pub struct ValueWriter { /* private fields */ }
Implementations§
Source§impl ValueWriter
impl ValueWriter
pub fn update(store: ValueStore) -> Self
pub fn value(&mut self, record: ValueRecord) -> ValueId
pub fn const_value(&mut self, record: ValueRecord) -> ConstValueId
pub fn list(&mut self, values: Vec<ValueRecord>) -> IdRange<ValueId>
pub fn fields( &mut self, records: Vec<(StringId, Span, ValueId)>, ) -> IdRange<FieldId>
pub fn const_fields( &mut self, records: Vec<(StringId, Span, ConstValueId)>, ) -> IdRange<FieldId>
Trait Implementations§
Source§impl Default for ValueWriter
impl Default for ValueWriter
Source§fn default() -> ValueWriter
fn default() -> ValueWriter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValueWriter
impl RefUnwindSafe for ValueWriter
impl Send for ValueWriter
impl Sync for ValueWriter
impl Unpin for ValueWriter
impl UnwindSafe for ValueWriter
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