Struct screeps::pathfinder::CostMatrix
source · pub struct CostMatrix<'a> { /* private fields */ }
Expand description
A CostMatrix
that’s valid to pass as a result from a PathFinder.search
room callback.
Lives as long as 'a
lifetime. It’s unsound to leak to JS past this lifetime if this matrix
was created by LocalCostMatrix::as_uploaded
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for CostMatrix<'a>
impl<'a> Send for CostMatrix<'a>
impl<'a> Sync for CostMatrix<'a>
impl<'a> Unpin for CostMatrix<'a>
impl<'a> UnwindSafe for CostMatrix<'a>
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