Trait screeps::traits::TryInto[][src]

pub trait TryInto<T> {
    type Error;
    pub fn try_into(self) -> Result<T, Self::Error>;
}

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

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

Associated Types

type Error[src]

The type returned in the event of a conversion error.

Loading content...

Required methods

pub fn try_into(self) -> Result<T, Self::Error>[src]

Performs the conversion.

Loading content...

Implementors

impl<T> TryInto<Vec<T, Global>> for JsVec<T> where
    T: TryFrom<Value, Error = ConversionError>, 
[src]

type Error = ConversionError

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

Loading content...