shape-runtime 0.3.2

Bytecode compiler, builtins, and runtime infrastructure for Shape
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// @module std::core::try_from
/// Fallible reverse-conversion trait.
///
/// `impl TryFrom<Source> for Target` auto-derives `TryInto<Target>`
/// on the source type so `as?` operators work.

/// Define a fallible conversion from `Source` into `Self`.
///
/// @see std::core::try_into::TryInto
trait TryFrom<Source> {
    /// Attempt to convert `value` into `Self`.
    method tryFrom(value: Source) -> Result<Self, AnyError>;
}