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
14
/// @module std::core::from
/// Infallible reverse-conversion trait.
///
/// `impl From<Source> for Target` auto-derives `Into<Target>` and
/// `TryInto<Target>` on the source type so `as`/`as?` operators work.

/// Define an infallible conversion from `Source` into `Self`.
///
/// @see std::core::into::Into
/// @see std::core::try_into::TryInto
trait From<Source> {
    /// Convert `value` into `Self` without failure.
    method from(value: Source) -> Self;
}