Struct screeps::objects::SpawnOptions
source · pub struct SpawnOptions { /* private fields */ }
Implementations
sourceimpl SpawnOptions
impl SpawnOptions
pub fn new() -> Self
pub fn memory<T: Into<Option<MemoryReference>>>(self, mem: T) -> Self
sourcepub fn energy_structures<T>(self, structures: T) -> Selfwhere
T: IntoIterator,
<T as IntoIterator>::Item: HasEnergyForSpawn,
pub fn energy_structures<T>(self, structures: T) -> Selfwhere
T: IntoIterator,
<T as IntoIterator>::Item: HasEnergyForSpawn,
This is most useful with the .as_structure()
method on structures.
pub fn dry_run(self, dry_run: bool) -> Self
pub fn directions(self, directions: &[Direction]) -> Self
Trait Implementations
sourceimpl Default for SpawnOptions
impl Default for SpawnOptions
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more