geometric-traits 0.2.2

Trait-based algebraic and graph algorithms for Rust, supporting no_std environments
Documentation
1
2
3
4
5
6
7
8
9
10
//! Trait for unsafe transmutation.

/// Trait for unsafe transmutation.
pub trait TransmuteFrom<T> {
    /// Transmutes the input into the output.
    ///
    /// # Safety
    /// The caller must ensure that the input is valid for the output type.
    unsafe fn transmute_from(from: T) -> Self;
}