Struct screeps::objects::output::SpawnOptions
source · 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 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