pub struct GlobalsBuilder { /* private fields */ }Expand description
Builder for defining multiple globals at once
Implementations§
Source§impl GlobalsBuilder
impl GlobalsBuilder
Sourcepub fn define_readonly(self, name: impl Into<String>, value: FactValue) -> Self
pub fn define_readonly(self, name: impl Into<String>, value: FactValue) -> Self
Add a read-only global variable
Sourcepub fn build(self) -> GlobalsRegistry
pub fn build(self) -> GlobalsRegistry
Build and return the registry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalsBuilder
impl RefUnwindSafe for GlobalsBuilder
impl Send for GlobalsBuilder
impl Sync for GlobalsBuilder
impl Unpin for GlobalsBuilder
impl UnwindSafe for GlobalsBuilder
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