pub struct Setting {
pub name: StrRef,
pub scope: Scope,
pub value: ExprRef,
}Expand description
SET name = value and RESET name.
One struct for the two, because RESET name is SET name with no value and giving it its own
arena would mean two of everything to say the same thing twice.
Fields§
§name: StrRefThe setting name, as written.
scope: ScopeThe scope word, if one was written.
value: ExprRefThe value, or NONE for a RESET.
An expression rather than text. SET memory_limit = '1GB' writes a string and SET threads = 4 writes a number, and what a setting does with either is the setting’s business.
Trait Implementations§
impl Copy for Setting
impl Eq for Setting
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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