pub struct LuaSurfaceCanFastReplaceParams {
pub direction: String,
pub force: LuaAny,
pub name: LuaAny,
pub position: MapPosition,
}Expand description
If there exists an entity at the given location that can be fast-replaced with the given entity parameters.
Fields§
§direction: StringDirection the entity would be placed. Defaults to north.
force: LuaAnyThe force that would place the entity. Defaults to the "neutral" force.
name: LuaAnyName of the entity to check.
position: MapPositionWhere the entity would be placed.
Trait Implementations§
Source§impl Clone for LuaSurfaceCanFastReplaceParams
impl Clone for LuaSurfaceCanFastReplaceParams
Source§fn clone(&self) -> LuaSurfaceCanFastReplaceParams
fn clone(&self) -> LuaSurfaceCanFastReplaceParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LuaSurfaceCanFastReplaceParams
impl Default for LuaSurfaceCanFastReplaceParams
Source§fn default() -> LuaSurfaceCanFastReplaceParams
fn default() -> LuaSurfaceCanFastReplaceParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCanFastReplaceParams
impl RefUnwindSafe for LuaSurfaceCanFastReplaceParams
impl Send for LuaSurfaceCanFastReplaceParams
impl Sync for LuaSurfaceCanFastReplaceParams
impl Unpin for LuaSurfaceCanFastReplaceParams
impl UnsafeUnpin for LuaSurfaceCanFastReplaceParams
impl UnwindSafe for LuaSurfaceCanFastReplaceParams
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