pub struct CanBuild {
pub ok: bool,
pub reason: Option<String>,
pub cost: f64,
}Expand description
The answer to a dry run: what the build would do, and its price.
Fields§
§ok: boolWhether the build would be placed.
reason: Option<String>Why it would be refused. None when it would be placed.
cost: f64The full price, in dollars, floors and bridged tiles included. It is set even when the build would be refused.
Auto Trait Implementations§
impl Freeze for CanBuild
impl RefUnwindSafe for CanBuild
impl Send for CanBuild
impl Sync for CanBuild
impl Unpin for CanBuild
impl UnsafeUnpin for CanBuild
impl UnwindSafe for CanBuild
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