Trait screeps::traits::TryInto

source ·
pub trait TryInto<T>: Sized {
    type Error;

    fn try_into(self) -> Result<T, Self::Error>;
}
Expand description

An attempted conversion that consumes self, which may or may not be expensive.

This definition is only temporary until Rust’s TryInto is stabilized.

Required Associated Types

The type returned in the event of a conversion error.

Required Methods

Performs the conversion.

Implementors