pub struct SandboxBuilder<'a> {
pub sandbox: &'a SandboxInstance,
pub randomizer: Randomizer,
pub templating_env: Environment<'a>,
}Expand description
SandboxBuilder is a wrapper for sandbox instances, providing the additional facilities required to generate content.
Fields§
§sandbox: &'a SandboxInstance§randomizer: Randomizer§templating_env: Environment<'a>Implementations§
Source§impl<'a> SandboxBuilder<'a>
impl<'a> SandboxBuilder<'a>
pub fn from_instance(instance: &'a SandboxInstance) -> Self
Auto Trait Implementations§
impl<'a> !Freeze for SandboxBuilder<'a>
impl<'a> !RefUnwindSafe for SandboxBuilder<'a>
impl<'a> !Send for SandboxBuilder<'a>
impl<'a> !Sync for SandboxBuilder<'a>
impl<'a> Unpin for SandboxBuilder<'a>
impl<'a> !UnwindSafe for SandboxBuilder<'a>
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