Skip to main content

FromLength

Trait FromLength 

Source
trait FromLength<const EXACT_DIVISION: bool> {
    // Required method
    fn from_length(len: usize) -> Self;
}

Required Methods§

Source

fn from_length(len: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> FromLength<false> for T
where T: From<usize>,

Source§

impl<T> FromLength<true> for T
where T: TryFrom<usize>, T::Error: Debug,