pub struct SpawnOptions { /* private fields */ }
Implementations§
Source§impl SpawnOptions
impl SpawnOptions
pub fn new() -> Self
pub fn memory(self, mem: JsValue) -> Self
Sourcepub fn energy_structures<T: IntoIterator<Item = V>, V: AsRef<Structure>>(
self,
structures: T,
) -> Self
pub fn energy_structures<T: IntoIterator<Item = V>, V: AsRef<Structure>>( self, structures: T, ) -> Self
Structures other than StructureSpawn
and StructureExtension
will
be ignored.
pub fn dry_run(self, dry_run: bool) -> Self
pub fn directions(self, directions: &[Direction]) -> Self
Trait Implementations§
Source§impl Default for SpawnOptions
impl Default for SpawnOptions
Source§fn default() -> SpawnOptions
fn default() -> SpawnOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl !Send for SpawnOptions
impl !Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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